CN108572897B - Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine - Google Patents

Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine Download PDF

Info

Publication number
CN108572897B
CN108572897B CN201810434761.6A CN201810434761A CN108572897B CN 108572897 B CN108572897 B CN 108572897B CN 201810434761 A CN201810434761 A CN 201810434761A CN 108572897 B CN108572897 B CN 108572897B
Authority
CN
China
Prior art keywords
image collector
test
testimony
operation interface
interface
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
CN201810434761.6A
Other languages
Chinese (zh)
Other versions
CN108572897A (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.)
Beijing Kuangshi Technology Co Ltd
Original Assignee
Beijing Kuangshi 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 Beijing Kuangshi Technology Co Ltd filed Critical Beijing Kuangshi Technology Co Ltd
Priority to CN201810434761.6A priority Critical patent/CN108572897B/en
Publication of CN108572897A publication Critical patent/CN108572897A/en
Application granted granted Critical
Publication of CN108572897B publication Critical patent/CN108572897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Investigating Or Analysing Materials By The Use Of Chemical Reactions (AREA)
  • Investigating Or Analyzing Non-Biological Materials By The Use Of Chemical Means (AREA)

Abstract

The invention provides a testimony and testimony integrated machine test method and device and a testimony and testimony integrated machine, and relates to the technical field of testimony and testimony integrated machine test. According to the testingmethod and the testingdevice of the testingall-in-one machine and the testingall-in-one machine provided by the embodiment of the invention, the operation interfaces corresponding to at least two devices are displayed on the comprehensive test interface of the testingall-in-one machine: the device comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp. Because the operation interfaces corresponding to various devices are arranged on the comprehensive test interface of the certification all-in-one machine, testers can test a plurality of devices of the certification all-in-one machine simultaneously by operating different operation interfaces on the comprehensive test interface, thereby effectively saving test time and reducing labor consumption.

Description

Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine
Technical Field
The invention relates to the technical field of testinga integrated machine, and a testinga.
Background
The human-card integrated machine is used for comparing the identity card with the portrait and quickly identifying whether the identity card is consistent with the user. The testimony integrated machine mainly comprises a distance sensor, a photosensitive sensor, an image collector and a light supplementing lamp which is arranged corresponding to the image collector. Wherein, distance sensor is used for detecting the distance between object and the testimony all-in-one. The photosensitive sensor is arranged at the window of the identity card reader and starts the identity card reader to read information in the identity card according to the sensed change of the ambient light. The image collector is used for shooting the face image, so that the face image shot by the witness integrated machine is compared with the read information in the identity card.
In the quality testing link before the testimony integrated machine leaves the factory, because the testing software used by different hardware is different, the traditional testing method usually needs testers to test the hardware in the testimony integrated machine one by one, and the next test can be carried out after one test is finished, so that a large amount of time is wasted, and the labor is consumed.
Disclosure of Invention
In view of the above, the present invention provides a testimony and testimony all-in-one machine testing method, device and testimony all-in-one machine, so that a tester can test a plurality of devices of the testimony and testimony all-in-one machine at the same time, thereby saving testing time and reducing manpower consumption.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a testament integrated machine test method, which is applied to a testament integrated machine, and the method includes:
displaying operation interfaces corresponding to at least two devices on a comprehensive test interface of the testimony all-in-one machine: the system comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp;
testing a device corresponding to the operation interface according to the test instruction received by the operation interface;
collecting operating data of the device in a test state;
and updating the display content of the running state corresponding to the device on the comprehensive test interface by using the running data.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of testing a device corresponding to the operation interface according to a test instruction received by the operation interface includes: if a test instruction is received through an operation interface corresponding to the image collector, starting the image collector;
the step of collecting operational data of the device under test comprises: and receiving video data acquired by the image acquisition device under a set test condition.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the witness all-in-one machine includes a plurality of image collectors; testing the device corresponding to the operation interface according to the test instruction received by the operation interface, wherein the testing method comprises the following steps:
and if the test instruction is received through the operation interface corresponding to the image collector, sequentially starting the image collectors, wherein the starting time interval of each image collector is set with duration.
With reference to the first or second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of starting the image collector includes:
sending a starting instruction to the image collector;
if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing the resources corresponding to the image collector;
and sending an opening instruction to the image collector again, and recording the fault of the image collector if the opening failure times of the image collector exceed the specified times.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of testing a device corresponding to the operation interface according to the test instruction received by the operation interface includes: if a test instruction is received through an operation interface corresponding to the distance sensor, starting the distance sensor;
the step of collecting operational data of a device under test, comprising: and acquiring real-time distance data acquired by the distance sensor.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the step of acquiring the real-time distance data acquired by the distance sensor includes: receiving real-time distance data fed back by a service layer of the testimony all-in-one machine, wherein the real-time distance data comprise a real-time state value and a real-time distance value;
the step of updating the display content of the operation state corresponding to the device on the comprehensive test interface by applying the operation data comprises the following steps: updating the display content of the status bar corresponding to the distance sensor by applying the real-time status value; and updating the display content of the distance bar corresponding to the distance sensor by applying the real-time distance value.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of testing a device corresponding to the operation interface according to the test instruction received by the operation interface includes: if a test instruction is received through an operation interface corresponding to the photosensitive sensor, starting the photosensitive sensor;
the step of collecting operational data of a device under test, comprising: receiving blocking state parameters fed back by a service layer of the testimony all-in-one machine in real time;
the step of updating the display content of the operation state corresponding to the device on the comprehensive test interface by applying the operation data comprises the following steps: determining the blocking state of the photosensitive sensor according to the blocking state parameter; and updating the display content in the blocking state display column corresponding to the photosensitive sensor by applying the determined blocking state.
With reference to the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method further includes:
recording the blocking times of the photosensitive sensor according to the blocking state of the photosensitive sensor;
and updating the display content in the blocking times display column corresponding to the photosensitive sensor on the comprehensive test interface.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where the step of displaying, on a comprehensive test interface of the testimony integrated machine, operation interfaces corresponding to at least two devices includes:
displaying a light supplement lamp operation interface on a comprehensive test interface of the testimony and testimony integrated machine; the light supplement lamp operation interface at least comprises: the light source module comprises one of an RGB light supplement lamp operation interface, an infrared light supplement lamp operation interface or a high-speed shooting light supplement lamp operation interface.
With reference to the first aspect or the eighth possible implementation manner of the first aspect, an embodiment of the present invention provides the first possible implementation manner of the first aspect, where the step of testing a device corresponding to the operation interface according to the test instruction received by the operation interface includes:
and if a test instruction for turning on or off the light supplement lamp is received through the light supplement lamp operation interface corresponding to the light supplement lamp, controlling the corresponding light supplement lamp to be turned on or turned off according to the test instruction.
With reference to the ninth possible implementation manner of the first aspect, an embodiment of the present invention provides a tenth possible implementation manner of the first aspect, where the step of controlling, according to the test instruction, a corresponding fill light to be turned on or off includes:
and sending a message for controlling the on-off of a light supplementing lamp circuit to a core class library of the testimony all-in-one machine according to the test instruction.
In a second aspect, an embodiment of the present invention further provides a testimony testing device, which is applied to a testimony testing machine, where the testimony testing device includes:
the interface providing module is used for displaying operation interfaces corresponding to at least two devices on the comprehensive test interface of the testimony and testimony integrated machine: the system comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp;
the test control module is used for testing the device corresponding to the operation interface according to the test instruction received by the operation interface and collecting the running data of the device in a test state;
and the display module is used for updating the display content of the running state corresponding to the device on the comprehensive test interface by using the running data.
In a third aspect, an embodiment of the present invention further provides a testimony integrated machine, including: the device comprises an image collector, a distance sensor, a photosensitive sensor, a light supplementing lamp, a processor and a storage device; the image collector, the distance sensor, the photosensitive sensor, the light supplementing lamp and the storage device are all connected with the processor;
the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the first aspects.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method according to any one of the first aspect.
According to the testability all-in-one machine testing method and device and the testability all-in-one machine, the operation interfaces corresponding to multiple (at least two) devices are arranged on the comprehensive testing interface of the certification all-in-one machine, so that a tester can simultaneously test the multiple devices of the testability all-in-one machine by operating different operation interfaces on the comprehensive testing interface, testing time can be effectively saved, and labor consumption is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the above-described technology of the disclosure.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 shows a schematic structural diagram of a witness all-in-one machine provided by an embodiment of the invention;
fig. 2 shows a flowchart of a testimony testing method provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a testimony testing device provided by an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of another testimony integrated machine testing device provided by the embodiment of the invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to save the test time for testing a plurality of devices of the testimony integrated machine, the testimony integrated machine test method, the testimony integrated machine test device and the testimony integrated machine provided by the embodiment of the invention are provided, wherein the testimony integrated machine test method and the testimony integrated machine test device are applied to the testimony integrated machine, and the embodiment of the invention is described in detail below.
The first embodiment is as follows:
first, a testable method and apparatus for implementing an embodiment of the present invention will be described with reference to a testable all-in-one machine 100 shown in fig. 1.
The testimony integrated machine can be used for comparing the identity card with the portrait and quickly identifying whether the testimony is consistent with the user. Fig. 1 exemplarily shows a structural block diagram of a testimony integrated machine to which the embodiment of the present invention is applied. As shown in fig. 1, the witness 100 includes one or more processors 102, one or more memory devices 104, an input device 106, an output device 108, one or more image collectors 110, a distance sensor 114, a light sensor 116, and one or more fill lights 118, which are interconnected via a bus system 112 and/or other form of connection mechanism (not shown). It should be noted that the components and configuration of the witness 100 shown in fig. 1 are exemplary only, and not limiting, and the witness may have other components or configurations as desired.
The processor 102 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the kiosk 100 to perform desired functions.
The storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. On which one or more computer program instructions may be stored that may be executed by processor 102 to implement client-side functionality (implemented by the processor) and/or other desired functionality in embodiments of the invention described below. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like.
The image collector 110 may be a camera or the like for capturing images (e.g., photos, videos, etc.) desired by a user and storing the captured images in the storage device 104 for use by other components.
Distance sensor 114 may be used to detect the distance between an object and the witness 100, for example, to detect the real-time distance between a person passing through the witness or a person standing in front of the witness and the witness 100.
The light sensor 116 is disposed at a window of the identification card reader and is activated to read information in the identification card based on the sensed ambient light changes.
The light supplement lamp 118 is arranged corresponding to the image collector, and is used for supplementing light for the image collector when the ambient light is insufficient and the image collection effect of the image collector is affected.
Example two:
referring to a flowchart of a testingmethod of the testingall-in-one machine shown in fig. 2, the testingmethod is applied to the testingall-in-one machine, and comprises the following steps:
step S202, displaying operation interfaces corresponding to at least two devices on a comprehensive test interface of the testimony and testimony integrated machine;
the device can comprise an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp.
Because the test of each device of the existing witness integrated machine needs to enter different test interfaces, when the testers detect the witness integrated machine at present, the testers need to test each device one by one, and need to input instructions to test each device one by one in a DOS (Disk Operating System) environment, which is difficult to operate and wastes a lot of time. Meanwhile, the single-item test method simply serializes the operation states of various devices, the testimony all-in-one machine needs to jointly schedule various devices during normal use, and various devices of the testimony all-in-one machine sometimes depend on each other and share a transmission protocol, so that if only one device is tested independently, the real operation state of the device cannot be reflected, and the test result under the real condition cannot be obtained.
Therefore, the testimony integrated machine testing method of the embodiment provides a comprehensive testing interface, and operation interfaces corresponding to various devices are arranged on the comprehensive testing interface. For example, an operation interface corresponding to any two of the following devices can be arranged on the comprehensive test interface: the system comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp; and operation interfaces corresponding to the four devices can be arranged on the comprehensive test interface. The operation interface can be presented on the comprehensive test interface in the form of a button input box or a touch key. The tester can click the operation interface to perform the test operation on each device.
And step S204, testing the device corresponding to the operation interface according to the test instruction received by the operation interface.
Step S206, collecting the operation data of the device in the test state.
And S208, updating the display content of the corresponding operation state of the device on the comprehensive test interface by using the operation data.
Besides various operation interfaces, the comprehensive test interface is also provided with an operation data display area for displaying the operation data of each device in a test state. The tester can clearly know the operation states of various devices through the comprehensive test interface. The comprehensive test interface adopts visual and humanized design, so that the operation of a tester is easy, and the test process is simpler and more convenient.
In an optional embodiment, after step S206, the testing method may further include: and storing the operation data into the storage area corresponding to the device in the test state. This step may be performed before step S208, or may be performed after step S208.
The steps of testing each device by this test method are described in detail below.
The testing process of the image collector is as follows:
if the test instruction is received through the operation interface corresponding to the image collector, starting the image collector; receiving video data acquired by an image acquisition device under a set test condition; and updating the display content of the display area corresponding to the image collector on the comprehensive test interface by using the collected video data, or outputting the collected video data to the comprehensive test interface for display and storing the video data to the storage area corresponding to the image collector so as to facilitate the user to check in the future. Starting to start the image collector, after a set time length, or if a test ending instruction is received through an operation interface corresponding to the image collector, closing the image collector.
The situation that the image collector fails to start can occur due to the matching problem of the operation system of the witness integrated machine and the image collector or other reasons. In order to avoid that the image collector is still tested under the condition that the image collector is failed to be started, and the test resources are wasted, the step of starting the image collector may include: sending a starting instruction to an image collector; if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing resources corresponding to the image collector; and sending the opening instruction to the image collector again, and recording the fault of the image collector if the opening failure times of the image collector exceed the specified times. When the starting instruction is sent to the image collector, a process is started for monitoring the video data collected by the image collector. Releasing the resources corresponding to the image collector may refer to closing a process for monitoring the image collector in a program, or canceling an association relationship between the process and the image collector.
For example, when sending an open instruction to the image collector, a delay trigger may be set, the preset duration of the delay trigger may be set to two seconds, and if video stream data returned by the camera is detected within two seconds, that is, the amount of video data sent by the camera is considered to be greater than a set threshold, where the set threshold may be 0KB or a minimum value close to 0KB, the delay trigger is cancelled. On the contrary, if the video stream data returned by the camera is not received within two seconds or the received video data volume is less than the set threshold value, the failure of opening the image collector is recorded, and the delay trigger releases the resources corresponding to the image collector. And sending an opening instruction to the image collector again, setting a new delay trigger at the same time, and repeating the steps until the image collector is opened successfully. And if the image collector cannot be successfully opened for more than three times, the image collector is not retried, the failure is directly recorded as the failure of the image collector, and the display content of the display area corresponding to the image collector on the comprehensive test interface is updated to be the failure of the image collector. The steps judge whether the image collector is successfully opened or not according to the actual condition of the video stream, are scientific and effective, and properly process the condition that the image collector is failed to be opened, so that the efficiency of the test can be greatly improved.
And if the image collector is successfully opened, setting a timing task, and testing the image collector within a set time length. The test can be an aging test for the image collector, and if the image collector continuously works for a set time under a set temperature condition, no problem occurs, and the image collector can be considered to pass the aging test. Wherein the set temperature condition may be 40 ℃ or more, and the set time period may be two hours, six hours, ten hours, twenty-four hours, or forty-eight hours.
The image collector may be a camera, and in view of that the testimony integrated machine may include two cameras or a plurality of cameras (for example, RGB cameras, infrared cameras, and high-speed cameras are provided on some testimony integrated machines), in an optional embodiment, when the testimony integrated machine includes a plurality of image collectors, if a test instruction is received through an operation interface corresponding to the image collector, the image collectors are sequentially started, and the start time interval of each image collector is set as the above-mentioned set time duration.
The image collector can be distinguished by its id. When an operation interface corresponding to the image collector receives a test instruction, a first image collector (id is 0) is started, the first image collector is tested, a timing task is set, after the set time length is passed, the first image collector is closed, a second image collector (id is 1) is started, the second image collector is tested, after the set time length is passed, the third image collector (id is 2) is switched, and so on, the image collectors are automatically switched, and the test of each image collector is completed one by one. The method solves the problem that in the prior art, a tester needs to switch the image collector through a DOS command, and the test operability is greatly improved.
It should be noted that, a tester may also manually switch the image collector through an operation interface on the integrated test interface.
Secondly, the testing process of the distance collector is as follows:
if a test instruction is received through an operation interface corresponding to the distance sensor, starting the distance sensor; and acquiring real-time distance data acquired by the distance sensor, and outputting the real-time distance data to a display area corresponding to the distance sensor on the comprehensive test interface for display.
Further, the distance sensor feeds back real-time distance data to an upper layer through a core class library in a service layer at the bottom of an operating system of the testimony and testimony all-in-one machine. In an embodiment of the present invention, real-time distance data fed back by a service layer of a witness all-in-one machine is received, where the real-time distance data includes status (real-time status value) and value (real-time distance value); status is representative of the semaphore and the confidence of value may depend on the value of status. For example, if the status value is 0, the confidence of the corresponding value is high; if the status value is 2 or 4, it indicates that there is no object within a short distance (8000mm) of the witness, and if the value is less than 1200mm, it may be a false trigger event. Separating a real-time state value and a real-time distance value from the real-time distance data; updating the display content of the status bar corresponding to the distance sensor by using the real-time status value; and updating the display content of the distance bar corresponding to the distance sensor by using the real-time distance value. And correspondingly storing the real-time state value and the real-time distance value in a storage area corresponding to the distance sensor. And if the test finishing instruction is received through the operation interface corresponding to the distance sensor, closing the distance sensor or stopping the test of the distance sensor. Alternatively, the test duration may be set, and after the set test duration, the distance sensor may be turned off or the test on the distance sensor may be stopped.
The tester can judge whether the distance sensor normally operates through the real-time state value and the real-time distance value displayed on the comprehensive test interface and the real distance between the object and the testimony integrated machine. For example, if the real-time status value displayed on the comprehensive test interface is 0, the real-time distance value is 496mm, and a certain object is actually present at a position about 0.5m away from the testimony and testimony integrated machine, the distance sensor can be considered to be normally operated. And if the real-time state value displayed on the comprehensive test interface is 2 or 4, the real-time distance value displays a numerical value smaller than 1200mm, and no object exists near the testimony all-in-one machine, the testness all-in-one machine is regarded as a false triggering event. And if the distance between the object and the testimony all-in-one machine is constantly changed and the real-time distance value on the comprehensive test interface is constantly unchanged in the test process of the distance sensor, the distance sensor is considered to be in fault.
Thirdly, the testing process of the photosensitive collector is as follows:
if a test instruction is received through an operation interface corresponding to the photosensitive sensor, starting the photosensitive sensor; receiving blocking state parameters fed back by a service layer of the testimony all-in-one machine in real time; determining the blocking state of the photosensitive sensor according to the blocking state parameters; updating the display content in the blocking state display column corresponding to the photosensitive sensor by applying the determined blocking state; and correspondingly storing the blocking state of the photosensitive sensor and the current moment in a storage area corresponding to the photosensitive sensor. And if the test finishing instruction is received through the operation interface corresponding to the photosensitive sensor, closing the photosensitive sensor or stopping the test of the photosensitive sensor.
For example, the blocking state parameter fed back by the service layer of the testimonial all-in-one machine in real time can be 1 or 0, wherein 1 represents that the photosensitive sensor is currently in the blocking state, and 0 represents that the photosensitive sensor is currently in the non-blocking state. If the current value of the blocking state parameter fed back by the service layer is 1, the display content in the blocking state display column corresponding to the photosensitive sensor on the comprehensive test interface may be a blocking state, or the display content in the blocking state display column may be as follows: is it blocked? : is.
Optionally, a blocking frequency display column may be further disposed on the comprehensive test interface. The test method further comprises the following steps: recording the blocking times of the photosensitive sensor according to the blocking state of the photosensitive sensor; each time the light sensitive sensor is blocked, the number of times the light sensitive sensor is blocked is increased by one. And updating the display content in the blocking times display column corresponding to the photosensitive sensor on the comprehensive test interface. For example, the display contents in the blocking number display field may be: blocked 72 times.
The testing process of the light supplement lamp is as follows:
and if a test instruction for turning on or off the light supplement lamp is received through the light supplement lamp operation interface corresponding to the light supplement lamp, controlling the corresponding light supplement lamp to be turned on or turned off according to the test instruction. Specifically, a message for controlling the on-off of the light supplement lamp circuit can be sent to a core class library of the testimony all-in-one machine according to the test instruction. For example, if a test instruction for turning on the fill-in light is received, the field 0 is written into the corresponding system path, and a file in the system path sends a message of a fill-in light circuit to the core class library embedded in the bottom layer in an instruction mode, so as to turn on the fill-in light. And if a test instruction for turning off the light supplement lamp is received, writing the field 1 into a corresponding system path, and sending a message of turning off the light supplement lamp circuit to a core class library embedded in the bottom layer by a file in the system path in an instruction mode so as to turn off the light supplement lamp. The tester can observe whether the light supplement lamp is normally turned on or turned off, and determine whether the response of the light supplement lamp is normal. The light supplement lamp testing method solves the problem that in the prior art, a tester needs to control the on-off of the light supplement lamp through a DOS command, and sometimes the tester can mistake the on-off state of the light supplement lamp, so that a wrong instruction is given, a friendly graphical testing interface is provided, the operation difficulty of the tester is reduced, and the test operability is greatly improved.
Because perhaps be equipped with a plurality of image collector on the testimony of a witness all-in-one, every image collector corresponds and is provided with a light filling lamp, consequently, probably is equipped with a plurality of light filling lamps on the testimony of a witness all-in-one. Aiming at the situation, a plurality of light supplement lamp operation interfaces can be arranged on the comprehensive test interface, and each operation interface correspondingly controls one light supplement lamp. For example, the testimony all-in-one machine is provided with an RGB light supplement lamp corresponding to the RGB camera, an infrared light supplement lamp corresponding to the infrared camera and a high-shooting light supplement lamp corresponding to the high-shooting camera. Correspondingly, three light supplement lamp operation interfaces can be arranged on the comprehensive test interface, namely an RGB light supplement lamp operation interface, an infrared light supplement lamp operation interface and a high-speed shooting light supplement lamp operation interface. It should be noted that the number of the fill light operation interfaces arranged on the comprehensive test interface may be less than three or more than three. For example, the fill light operation interface may only include one or two of the three fill light operation interfaces.
By applying the testimony integrated machine testing method, testers input testing instructions through the operation interfaces on the comprehensive testing interface, and can click the operation interfaces corresponding to other devices when testing the image collector and test other one or more devices, so that testing time is effectively saved, and labor consumption is reduced. A tester can simultaneously start a plurality of devices according to the running coordination of the testimony and testimony integrated machine among the devices in the actual work so as to simulate the running state of each device in the real working process and obtain more real running data. The test method also has the function of writing the test obtained operation data into the text, and records the test obtained operation data so as to facilitate the analysis of a tester in the future, greatly simplify the test difficulty, and more precisely complete the statistics of the test result.
Example three:
corresponding to the foregoing method embodiment, this embodiment provides a testifier for a testifier, and referring to a schematic structural diagram of the testifier for a testifier shown in fig. 3, the testifier includes:
an interface providing module 32, configured to display, on the comprehensive test interface of the testimony and testimony all-in-one machine, operation interfaces corresponding to at least two devices: the device comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp.
And the test control module 34 is configured to test a device corresponding to the operation interface according to the test instruction received by the operation interface, and acquire operation data of the device in a test state.
Optionally, the test control module 34 may be further configured to start the image collector if the test instruction is received through the operation interface corresponding to the image collector; and receiving video data acquired by the image acquisition device under a set test condition. Wherein, start the image collector, include: sending a starting instruction to an image collector; if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing resources corresponding to the image collector; and sending the opening instruction to the image collector again, and recording the fault of the image collector if the opening failure times of the image collector exceed the specified times.
If the testimony all-in-one machine comprises a plurality of image collectors; the test control module 34 may be further configured to start each image collector in sequence if a test instruction is received through an operation interface corresponding to the image collector, where a start time interval of each image collector is set to be a time duration.
Optionally, the test control module 34 may be further configured to start the distance sensor if a test instruction is received through the operation interface corresponding to the distance sensor; and acquiring real-time distance data acquired by the distance sensor, for example, receiving real-time distance data fed back by a service layer of the witness integrated machine, wherein the real-time distance data comprises a real-time state value and a real-time distance value.
Optionally, the test control module 34 may be further configured to start the photosensitive sensor if a test instruction is received through an operation interface corresponding to the photosensitive sensor; and receiving blocking state parameters fed back by a service layer of the testimony all-in-one machine in real time.
Optionally, the test control module 34 may be further configured to, if a test instruction for turning on the light supplement lamp or turning off the light supplement lamp is received through an operation interface corresponding to the light supplement lamp, control the corresponding light supplement lamp to be turned on or turned off according to the test instruction. For example, according to the test instruction, a message for controlling the on-off of a light supplement lamp circuit is sent to a core class library of the testimony all-in-one machine so as to control the corresponding light supplement lamp to be turned on or turned off.
And the display module 36 is configured to update display content of the operation state corresponding to the device on the comprehensive test interface by using the operation data.
Optionally, the display module 36 may be further configured to update display content corresponding to the image collector on the comprehensive test interface by using the received video data.
Optionally, the display module 36 may be further configured to separate the real-time status value and the real-time distance value from the real-time distance data; updating the display content of the status bar corresponding to the distance sensor by using the real-time status value; and updating the display content of the distance bar corresponding to the distance sensor by using the real-time distance value.
Optionally, the display module 36 may be further configured to determine a blocking status of the photosensitive sensor according to the blocking status parameter; and updating the display content in the blocking state display column corresponding to the photosensitive sensor by applying the determined blocking state. The display module 36 may be further configured to record the number of times that the photosensitive sensor is blocked according to the blocking state of the photosensitive sensor; and updating the display content in the blocking times display column corresponding to the photosensitive sensor on the comprehensive test interface.
Optionally, the interface providing module 32 may be further configured to display a light supplement lamp operation interface on the comprehensive test interface of the testimony and testimony all-in-one machine; the light supplement lamp operation interface at least comprises: the light source module comprises one of an RGB light supplement lamp operation interface, an infrared light supplement lamp operation interface or a high-speed shooting light supplement lamp operation interface.
Optionally, the testimony integrated machine testing device provided by the embodiment of the present invention may further include a storage module, configured to store the operation data in a storage area corresponding to the device in the test state.
The testimony integrated machine testing device provided by the embodiment of the invention can also adopt the following module division mode, as shown in fig. 4, and the testing device comprises:
an interface providing module 32, configured to display, on the comprehensive test interface of the testimony and testimony all-in-one machine, operation interfaces corresponding to at least two devices: the device comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp.
The image collector testing module 42 is used for starting the image collector if a testing instruction is received through an operation interface corresponding to the image collector; receiving video data acquired by an image acquisition device under a set test condition; and updating the display content corresponding to the image collector on the comprehensive test interface by using the received video data, and storing the video data into a storage area corresponding to the image collector. Wherein, start the image collector, include: sending a starting instruction to an image collector; if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing the resources corresponding to the image collector; and sending the opening instruction to the image collector again, and recording the fault of the image collector if the opening failure times of the image collector exceed the specified times.
If the witness all-in-one machine comprises a plurality of image collectors; image collector test module 42 may also be configured to: and if the test instruction is received through the operation interface corresponding to the image collector, sequentially starting the image collectors, wherein the starting time interval of each image collector is set with the duration.
A distance sensor testing module 44, configured to start the distance sensor if a testing instruction is received through an operation interface corresponding to the distance sensor; acquiring real-time distance data acquired by a distance sensor; for example, receiving real-time distance data fed back by a service layer of the witness integrated machine, wherein the real-time distance data comprises a real-time state value and a real-time distance value. Separating a real-time state value and a real-time distance value from the real-time distance data; updating the display content of the status bar corresponding to the distance sensor by applying the real-time status value; and updating the display content of the distance bar corresponding to the distance sensor by applying the real-time distance value. And correspondingly storing the real-time state value and the real-time distance value in a storage area corresponding to the distance sensor.
A photosensitive sensor testing module 46, configured to start the photosensitive sensor if a testing instruction is received through an operation interface corresponding to the photosensitive sensor; receiving blocking state parameters fed back by a service layer of the testimony all-in-one machine in real time; determining the blocking state of the photosensitive sensor according to the blocking state parameter; and updating the display content in the blocking state display column corresponding to the photosensitive sensor by applying the determined blocking state. And correspondingly storing the blocking state and the current moment of the photosensitive sensor into a storage area corresponding to the photosensitive sensor. The photosensor testing module 46 may also be configured to: recording the blocking times of the photosensitive sensor according to the blocking state of the photosensitive sensor; and updating the display content in the blocking times display column corresponding to the photosensitive sensor on the comprehensive test interface.
And the light supplement lamp testing module 48 is configured to, if a test instruction for turning on or turning off the light supplement lamp is received through an operation interface corresponding to the light supplement lamp, control the corresponding light supplement lamp to be turned on or turned off according to the test instruction. For example, according to the test instruction, a message for controlling the on-off of a light supplement lamp circuit is sent to a core class library of the testimony all-in-one machine.
According to the testbed device of the testbed integrated machine, provided by the embodiment of the invention, the comprehensive test interface of the certification integrated machine is provided with the operation interfaces corresponding to various devices, so that a tester can simultaneously test the various devices of the testbed integrated machine by operating different operation interfaces on the comprehensive test interface, thereby effectively saving the test time and reducing the labor consumption.
The device provided by the embodiment has the same implementation principle and technical effect as the foregoing embodiment, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiment for the portion of the embodiment of the device that is not mentioned.
Example four:
the embodiment of the invention provides a testimony of a witness all-in-one machine, which comprises: image collector, distance sensor, photosensitive sensor, light filling lamp, treater and storage device. The image collector, the distance sensor, the photosensitive sensor, the light supplementing lamp and the storage device are all connected with the processor.
The storage means has stored thereon a computer program which, when executed by the processor, performs the method as provided by the aforementioned method embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Further, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method provided by the foregoing method embodiment.
The testability method and device for the testability all-in-one machine and the computer program product for the testability all-in-one machine provided by the embodiment of the invention comprise a computer readable storage medium storing program codes, instructions included in the program codes can be used for executing the method in the previous method embodiment, and specific implementation can refer to the method embodiment, and is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (13)

1. A testament all-in-one machine test method is applied to a testament all-in-one machine, and comprises the following steps:
displaying operation interfaces corresponding to at least two devices on a comprehensive test interface of the testimony all-in-one machine: the system comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp;
testing a device corresponding to the operation interface according to the test instruction received by the operation interface;
collecting operating data of the device in a test state;
updating the display content of the running state corresponding to the device on the comprehensive test interface by using the running data;
the step of testing the device corresponding to the operation interface according to the test instruction received by the operation interface includes: if a test instruction is received through an operation interface corresponding to the image collector, starting the image collector;
the step of starting the image collector comprises the following steps: sending a starting instruction to the image collector; if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing the resources corresponding to the image collector; sending an opening instruction to the image collector again, and recording the fault of the image collector if the number of times of opening failure of the image collector exceeds the specified number of times;
when the starting instruction is sent to the image collector, starting a process for monitoring video data collected by the image collector; the releasing of the resources corresponding to the image collector includes: and closing the process for monitoring the image collector, or canceling the incidence relation between the process and the image collector.
2. The method of claim 1, wherein the step of collecting operational data of the device under test comprises: and receiving video data acquired by the image acquisition device under a set test condition.
3. The testing method of claim 2, wherein the human-evidence all-in-one machine comprises a plurality of image collectors; testing the device corresponding to the operation interface according to the test instruction received by the operation interface, wherein the testing method comprises the following steps:
and if the test instruction is received through the operation interface corresponding to the image collector, sequentially starting the image collectors, wherein the starting time interval of each image collector is set with duration.
4. The method according to claim 1, wherein the step of testing the device corresponding to the operation interface according to the test instruction received by the operation interface comprises: if a test instruction is received through an operation interface corresponding to the distance sensor, starting the distance sensor;
the step of collecting operational data of a device under test, comprising: and acquiring real-time distance data acquired by the distance sensor.
5. The method of claim 4, wherein the step of obtaining real-time distance data collected by the distance sensor comprises: receiving real-time distance data fed back by a service layer of the testimony all-in-one machine, wherein the real-time distance data comprise a real-time state value and a real-time distance value;
the step of updating the display content of the operation state corresponding to the device on the comprehensive test interface by applying the operation data comprises the following steps: updating the display content of the status bar corresponding to the distance sensor by applying the real-time status value; and updating the display content of the distance bar corresponding to the distance sensor by applying the real-time distance value.
6. The method according to claim 1, wherein the step of testing the device corresponding to the operation interface according to the test instruction received by the operation interface comprises: if a test instruction is received through an operation interface corresponding to the photosensitive sensor, starting the photosensitive sensor;
the step of collecting operational data of a device under test, comprising: receiving blocking state parameters fed back by a service layer of the testimony all-in-one machine in real time;
the step of updating the display content of the operation state corresponding to the device on the comprehensive test interface by applying the operation data comprises the following steps: determining the blocking state of the photosensitive sensor according to the blocking state parameter; and updating the display content in the blocking state display column corresponding to the photosensitive sensor by applying the determined blocking state.
7. The method of testing of claim 6, further comprising:
recording the blocking times of the photosensitive sensor according to the blocking state of the photosensitive sensor;
and updating the display content in the blocking times display column corresponding to the photosensitive sensor on the comprehensive test interface.
8. The testing method according to claim 1, wherein the step of displaying the operation interfaces corresponding to at least two devices on the comprehensive testing interface of the testimony and testimony all-in-one machine comprises the following steps:
displaying a light supplement lamp operation interface on a comprehensive test interface of the testimony and testimony integrated machine; the light supplement lamp operation interface at least comprises: the light source module comprises one of an RGB light supplement lamp operation interface, an infrared light supplement lamp operation interface or a high-speed shooting light supplement lamp operation interface.
9. The method according to claim 1 or 8, wherein the step of testing the device corresponding to the operation interface according to the test instruction received by the operation interface comprises:
and if a test instruction for turning on or off the light supplement lamp is received through the light supplement lamp operation interface corresponding to the light supplement lamp, controlling the corresponding light supplement lamp to be turned on or turned off according to the test instruction.
10. The method according to claim 9, wherein the step of controlling the corresponding fill-in light to turn on or off according to the test command comprises:
and sending a message for controlling the on-off of a light supplementing lamp circuit to a core class library of the testimony all-in-one machine according to the test instruction.
11. The utility model provides a testimony of a witness all-in-one testing arrangement which characterized in that is applied to testimony of a witness all-in-one, the device includes:
the interface providing module is used for displaying operation interfaces corresponding to at least two devices on the comprehensive test interface of the testimony and testimony integrated machine: the system comprises an image collector, a distance sensor, a photosensitive sensor or a light supplementing lamp;
the test control module is used for testing the device corresponding to the operation interface according to the test instruction received by the operation interface and collecting the running data of the device in a test state;
the display module is used for updating the display content of the running state corresponding to the device on the comprehensive test interface by applying the running data;
the test control module is further configured to: if a test instruction is received through an operation interface corresponding to the image collector, starting the image collector;
the test control module is further configured to: sending a starting instruction to the image collector; if the received video data volume sent by the image collector is smaller than a set threshold value within a preset time length, recording the opening failure of the image collector, and releasing the resources corresponding to the image collector; sending an opening instruction to the image collector again, and recording the fault of the image collector if the number of times of opening failure of the image collector exceeds the specified number of times;
when the starting instruction is sent to the image collector, starting a process for monitoring video data collected by the image collector; the releasing of the resources corresponding to the image collector includes: and closing the process for monitoring the image collector, or canceling the incidence relation between the process and the image collector.
12. The utility model provides a testimony of a witness all-in-one which characterized in that includes: the device comprises an image collector, a distance sensor, a photosensitive sensor, a light supplementing lamp, a processor and a storage device; the image collector, the distance sensor, the photosensitive sensor, the light supplementing lamp and the storage device are all connected with the processor;
the storage device has stored thereon a computer program which, when executed by the processor, performs the method of any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of the preceding claims 1 to 10.
CN201810434761.6A 2018-05-08 2018-05-08 Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine Active CN108572897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810434761.6A CN108572897B (en) 2018-05-08 2018-05-08 Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810434761.6A CN108572897B (en) 2018-05-08 2018-05-08 Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine

Publications (2)

Publication Number Publication Date
CN108572897A CN108572897A (en) 2018-09-25
CN108572897B true CN108572897B (en) 2021-06-22

Family

ID=63571912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810434761.6A Active CN108572897B (en) 2018-05-08 2018-05-08 Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine

Country Status (1)

Country Link
CN (1) CN108572897B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126791B (en) * 2019-12-31 2022-11-22 荣耀终端有限公司 Time stamp recording device, system, method, medium, and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8019127B2 (en) * 2006-09-13 2011-09-13 George Mason Intellectual Properties, Inc. Image based turing test
CN102368224A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Processing method and device for hardware detection
CN104503875A (en) * 2014-12-08 2015-04-08 深圳市阿龙电子有限公司 Test method and test system of Android device
US9652801B2 (en) * 2015-07-16 2017-05-16 Countr, Inc. System and computer method for tracking online actions
CN206248574U (en) * 2016-11-10 2017-06-13 深圳惟电创新科技有限公司 A kind of USB flash disk test device
CN107770350A (en) * 2017-09-22 2018-03-06 苏州惠邦科信息技术有限公司 The method of testing of the anti-shudder performance of camera

Also Published As

Publication number Publication date
CN108572897A (en) 2018-09-25

Similar Documents

Publication Publication Date Title
CN106681913A (en) Application not responding positioning system and method
WO2015196601A1 (en) Method, apparatus and device for testing response time of user interface, and storage medium
CN103744764A (en) Crontab based whole computer memory stability test method
CN107608848A (en) Method of testing and system
CN107590042A (en) A kind of server method for testing open/close machine and system based on linux system
WO2017148271A1 (en) Linux system reset processing method and device, and computer storage medium
CN109582536B (en) Application program non-response reporting method and device and computer equipment
CN111601105B (en) Video display state abnormity detection method and device and electronic equipment
CN102789405A (en) Automated testing method and system for mainboard
CN108572897B (en) Testimony and testimony all-in-one machine test method and device and testimony all-in-one machine
EP2973480B1 (en) Method for testing notification appliances in alarm systems
JP2008094299A (en) Platform door operation abnormality detection system
CN112822440A (en) Biological sample preparation monitoring method, application server, system and storage medium
CN116489336A (en) Equipment monitoring method, device, equipment, medium and product based on virtual film production
WO2024139668A1 (en) Display screen icon flickering identification method, identification apparatus, and electronic device
CN111124774B (en) Method and related device for testing stability of server in starting process
CN112437348A (en) State information acquisition method, storage medium and smart television
US20170212798A1 (en) Ladder program display device having automatic trace function for self-holding circuit of ladder program
CN116306429A (en) Method, device, computer storage medium and terminal for realizing state data capture
CN111858208B (en) Standby function testing method, device, equipment and medium of processor chip
CN112218155A (en) Automatic detection method and device for switching time consumption and electronic equipment
JP6951157B2 (en) Programmable controller and ladder circuit program verification system
JP3049352U (en) Monitoring device
JP2005012590A (en) Supervisory camera system
CN208752606U (en) Test macro

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