CN113221593A - Two-dimensional code information acquisition method, electronic device and storage medium - Google Patents

Two-dimensional code information acquisition method, electronic device and storage medium Download PDF

Info

Publication number
CN113221593A
CN113221593A CN202110419373.2A CN202110419373A CN113221593A CN 113221593 A CN113221593 A CN 113221593A CN 202110419373 A CN202110419373 A CN 202110419373A CN 113221593 A CN113221593 A CN 113221593A
Authority
CN
China
Prior art keywords
module
dimensional code
information
tested
dimension code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110419373.2A
Other languages
Chinese (zh)
Inventor
钟嘉华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202110419373.2A priority Critical patent/CN113221593A/en
Publication of CN113221593A publication Critical patent/CN113221593A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to a two-dimensional code information acquisition method and device, computer equipment and a storage medium. The method comprises the following steps: when the tested module exists on the test fixture, outputting the in-place information of the tested module, wherein the in-place information of the tested module is used for marking the tested module on the test fixture; detecting whether a two-dimensional code information file exists or not, wherein the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a tested module on the test fixture; and when the two-dimension code information file is detected to exist, analyzing the two-dimension code information file to acquire the related information of the two-dimension code. By adopting the method, the two-dimension code information of the module to be detected can be automatically acquired, so that the production efficiency is improved.

Description

Two-dimensional code information acquisition method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a two-dimensional code recognition method in module production, an electronic device, and a storage medium.
Background
With the development of computer technology, computer technology has been widely applied to full-automatic production processes in industrial production to improve production efficiency. In the current production test flow, before testing each module, a scanning gun is required to be used manually to scan and identify the two-dimensional code on the module label, and then the test is performed according to the result of code scanning identification.
The production test process needs manual operation, occupies labor cost, is low in efficiency, is easy to make mistakes in manual operation, and cannot test errors of the corresponding two-dimensional codes on the module labels, so that the production efficiency is finally reduced.
Disclosure of Invention
In view of the above, it is necessary to provide a two-dimensional code information acquisition method, an apparatus, an electronic device, and a storage medium, which can improve production efficiency.
A two-dimension code information acquisition method comprises the following steps:
when the tested module exists on the test fixture, outputting the in-place information of the tested module, wherein the in-place information of the tested module is used for marking the tested module on the test fixture;
detecting whether a two-dimensional code information file exists or not, wherein the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a tested module on the test fixture;
and when the two-dimension code information file is detected to exist, analyzing the two-dimension code information file to acquire the related information of the two-dimension code.
In one embodiment, when it is determined that the module under test exists on the test fixture, outputting the module under test in-place information includes:
and when the tested module exists on the test fixture, generating an identification configuration file according to the initial configuration file.
In one embodiment, after outputting the information to be tested, before detecting whether there is a two-dimensional code information file, the method further includes:
and calling a two-dimensional code detection application to identify the two-dimensional code on the tested module on the test fixture.
In one embodiment, the method further comprises the following steps:
and after outputting the in-place information of the tested module, outputting alarm information when the two-dimensional code information file is not detected after the preset time.
A two-dimension code information acquisition method comprises the following steps:
detecting whether the in-place information of the tested module exists or not, wherein the in-place information of the tested module is used for identifying the tested module on the test fixture;
when the in-place information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module;
and after the camera successfully identifies the two-dimensional code on the tested module, generating a two-dimensional code information file, wherein the two-dimensional code information file stores relevant information obtained by identifying the two-dimensional code on the tested module on the test fixture.
In one embodiment, before detecting whether the module under test is in-place information, the method further includes: responding to a two-dimension code identification flow starting instruction, and starting a two-dimension code identification flow;
and after the two-dimension code information file is generated, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for a next two-dimension code recognition process starting instruction.
In one embodiment, the controlling the camera to identify the two-dimensional code on the module under test when the module under test is in-place information includes:
and when the in-place information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module according to preset time.
In one embodiment, the method further comprises the following steps:
and when the preset time is exceeded and the camera cannot successfully identify the two-dimensional code on the module to be tested, outputting prompt information.
A two-dimension code information acquisition method comprises the following steps:
when receiving the tested module positioning information of the tested module on the testing jig, controlling the camera to shoot the two-dimensional code on the tested module;
performing image recognition on the shot two-dimensional code, and generating a two-dimensional code information file based on an image recognition result;
and analyzing the two-dimension code information file to obtain the relevant information of the two-dimension code on the tested module.
In one embodiment, the method further comprises the following steps:
and after the relevant information of the two-dimension code is acquired, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for the next two-dimension code recognition process starting instruction.
A two-dimensional code information acquisition apparatus, the apparatus comprising:
the device comprises a tested module in-position information output module, a test fixture and a test module identification module, wherein the tested module in-position information output module is used for outputting tested module in-position information when the tested module is determined to exist on the test fixture, and the tested module in-position information is used for identifying the tested module existing on the test fixture;
the two-dimensional code information detection module is used for detecting whether a two-dimensional code information file exists or not, and the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a module to be tested on the test fixture;
and the two-dimension code information acquisition module is used for analyzing the two-dimension code information file and acquiring the related information of the two-dimension code when the two-dimension code information file is detected to exist.
A two-dimensional code information acquisition apparatus, the apparatus comprising:
the device comprises a tested module positioning information detection module, a test fixture and a test module positioning information identification module, wherein the tested module positioning information detection module is used for detecting whether the tested module positioning information exists or not, and the tested module positioning information is used for identifying the tested module on the test fixture;
the two-dimension code identification module is used for controlling the camera to identify the two-dimension code on the tested module when the in-place information of the tested module exists;
and the two-dimension code information file generating module is used for generating a two-dimension code information file after the camera successfully identifies the two-dimension code on the tested module, wherein the two-dimension code information file stores the related information of the two-dimension code.
An electronic device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
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 above-mentioned method.
According to the two-dimension code information acquisition method, the two-dimension code information acquisition device, the electronic equipment and the storage medium, whether the tested module exists on the test fixture or not is determined, and when the tested module exists, the tested module in-place information is output, wherein the tested module in-place information is used for identifying the tested module on the test fixture, and whether a two-dimension code information file exists or not is detected, so that when the two-dimension code information file exists, the two-dimension code information file can be analyzed to obtain the two-dimension code related information, and the related information of the two-dimension code on the tested module can be automatically acquired through the method.
Drawings
Fig. 1 is an application environment diagram of a two-dimensional code information acquisition method in an embodiment;
fig. 2 is a schematic flow chart of a two-dimensional code information acquisition method in an embodiment;
fig. 3 is a schematic flowchart of a two-dimensional code information acquisition method in an embodiment;
fig. 4 is a schematic flowchart of a two-dimensional code information acquisition method in an embodiment;
fig. 5 is a schematic flowchart of a two-dimensional code information acquisition method in an embodiment;
fig. 6 is a block diagram showing a structure of a two-dimensional code information acquisition apparatus according to an embodiment;
fig. 7 is a block diagram showing a structure of a two-dimensional code information acquisition apparatus according to an embodiment;
fig. 8 is a block diagram showing a structure of a two-dimensional code information acquisition apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The two-dimensional code information acquisition method provided by the application can be applied to the application environment shown in fig. 1. The electronic device 102 communicates with the test fixture 104 through a network. The electronic device 102 runs a plurality of application programs, such as a functional test application and a two-dimensional code detection application, and outputs module-under-test location information when the functional test application determines that a module-under-test exists on the test fixture 104, where the module-under-test location information is used to identify that the module-under-test exists on the test fixture; detecting whether a two-dimensional code information file exists or not, wherein the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a tested module on the test fixture; and when the two-dimension code information file is detected to exist, analyzing the two-dimension code information file to acquire the related information of the two-dimension code.
In one embodiment, the sensor module may be disposed at a corresponding position of the test fixture 104, and when the sensor module detects that the module under test is present on the test fixture 104, the sensor module feeds back information that the module under test is present on the test fixture 104 to the functional test application, and when the functional test application receives the information fed back by the sensor module, the sensor module determines that the module under test is present on the test fixture 104, and outputs the information that the module under test is in place.
The test fixture 104 is a fixture specially used for testing and experimenting functions, power calibration, service life, performance and the like of a product, and can be used for testing various indexes of the product on a production line. In one embodiment, the test fixture 104 is fixed with a camera for identifying the two-dimensional code of the module under test, and when the test fixture is located in a dark area, the test fixture may be further provided with an LED lamp (light emitting diode) for light supply.
The electronic device 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In an embodiment, as shown in fig. 2, a two-dimensional code information obtaining method is provided, which is described by taking the method as an example of being applied to the functional test application in fig. 1, and includes the following steps:
step S202, when the tested module exists on the test fixture, outputting the in-place information of the tested module, wherein the in-place information of the tested module is used for marking the tested module on the test fixture.
Wherein, the testing jig is a jig specially used for testing and experimenting the functions, power calibration, service life, performance and the like of a product, and can be used for testing various indexes of the product on a production line, the module to be tested is a module which needs to test various indexes, such as measuring the voltage, time sequence and the like of an output pin of a communication module,
the module-under-test positioning information is information capable of identifying the existence of the module-under-test on the test fixture, wherein the module-under-test positioning information may be an identifier or a number. In one embodiment, the test fixture may be provided with a sensor module, when the sensor module detects that the module under test is present on the test fixture, the sensor module feeds back information that the module under test is present on the test fixture to the functional test application, and when the functional test application receives the information fed back by the sensor module, the sensor module determines that the module under test is present on the test fixture and outputs the information that the module under test is in place.
Step S204, whether a two-dimension code information file exists is detected, and relevant information obtained by identifying the two-dimension code on the tested module on the test fixture is stored in the two-dimension code information file.
The two-dimensional code information file refers to information related to the two-dimensional code placed on the test fixture, and the two-dimensional code information file stores an SN number (product serial number) of the module to be tested.
Step S206, when the two-dimension code information file is detected to exist, the two-dimension code information file is analyzed, and the related information of the two-dimension code is obtained.
When the function detection application detects that the two-dimensional code information file exists, the two-dimensional code information file is analyzed, and relevant information of the two-dimensional code is obtained, for example, an SN number of the module to be tested is obtained by analyzing the two-dimensional code information file, wherein the SN number can be used as identification information of the module to be tested, and after the function detection application obtains the SN number, a test flow can be developed according to the SN number. For example, the functional test application may obtain a test program corresponding to the SN number according to the SN number, and start a test flow of the module under test.
In the two-dimensional code information acquisition method, when a tested module is determined to exist on a test fixture, the tested module positioning information is output, and the tested module positioning information is used for marking the tested module existing on the test fixture; detecting whether a two-dimensional code information file exists or not, wherein the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a tested module on the test fixture; when the two-dimension code information file is detected to exist, the two-dimension code information file is analyzed to obtain the related information of the two-dimension code, and the two-dimension code information of the module to be tested can be automatically obtained through the method, so that the production efficiency is improved.
In one embodiment, when it is determined that the module under test exists on the test fixture, outputting the module under test in-place information includes:
and when the tested module exists on the test fixture, generating an identification configuration file according to the initial configuration file.
The function test application corresponds to a test kit, the test kit stores an exe application program, a related dll (dynamic link library) dependency package and an initial configuration file, the test kit can be stored in a folder of the electronic equipment, the initial configuration file stores related characteristics of the two-dimensional code on the module to be tested, such as the bar code type of the two-dimensional code, the length of the content of the two-dimensional code and the identification of the beginning of the two-dimensional code, and the ini configuration file also can preset the time for scanning the two-dimensional code by the camera, and the time for scanning the two-dimensional code by the camera can be determined by setting timeout information.
In one embodiment, the functional test application reads the initial configuration file and generates the identification configuration file based on the initial configuration file.
In one embodiment, after outputting the information to be tested, before detecting whether there is a two-dimensional code information file, the method further includes:
and calling a two-dimensional code detection application to identify the two-dimensional code on the tested module on the test fixture.
After the in-place information of the tested module is output and before whether a two-dimension code information file exists or not is detected, the two-dimension code of the tested module on the test fixture is identified by calling the two-dimension code detection application, wherein the two-dimension code detection application can be called by the function test application in a message queue mode, the function test application outputs a message to the two-dimension code detection application through the message queue, and the two-dimension code detection application takes out the message from the message queue so as to execute corresponding actions based on the taken-out message. The message queue can be understood as a linked list of messages, and a process with write permission can add a new message to the queue according to a certain rule; a process that has read permission for a message queue may then read the message from the message queue. For example, it may be set that the functional test application has a write right to the message queue, and the two-dimensional code detection application has a read right to the message queue, so that the functional test application may add a message to the message queue, where the message is data to be transmitted, and correspondingly, the two-dimensional code detection application having the read right may read data to be processed from the message queue. The transmission of data through the message queue can carry a large amount of information.
In one embodiment, when the functional test application calls the two-dimensional code detection application in a message queue, the message queue may carry an identification configuration file.
In one embodiment, the method further comprises the following steps: and after outputting the in-place information of the tested module, outputting alarm information when the two-dimensional code information file is not detected after the preset time.
After the in-place information of the tested module is output, when the two-dimensional code information file is not detected after the preset time, the function detection application outputs alarm information, so that a user can be reminded to detect relevant equipment in a relevant production flow through the method.
In an embodiment, as shown in fig. 3, a two-dimensional code information obtaining method is provided, which is described by taking an example that the method is applied to the two-dimensional code detection application in fig. 1, and includes the following steps:
step S302, whether the tested module in-place information exists is detected, and the tested module in-place information is used for identifying the tested module on the testing jig.
In one embodiment, the two-dimensional code detection application detects whether there is location information of the module under test, for example, the two-dimensional code detection application may detect whether there is location information of the module under test according to information transmitted by the functional test application through the message queue, where the location information of the module under test is used to identify that the module under test exists on the test fixture.
And step S304, when the in-position information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module.
In one embodiment, when the two-dimensional code detection application detects that the module-under-test positioning information exists, the two-dimensional code detection application controls a camera on the test fixture to identify the two-dimensional code on the module-under-test.
Step S306, after the camera successfully identifies the two-dimensional code on the module to be tested, a two-dimensional code information file is generated, and the relevant information of the two-dimensional code is stored in the two-dimensional code information file.
And after the camera successfully identifies the two-dimension code on the tested module, generating a two-dimension code information file, wherein the two-dimension code information file stores the relevant information of the two-dimension code.
In one embodiment, before detecting whether the module under test is in-place information, the method further includes: responding to a two-dimension code identification flow starting instruction, and starting a two-dimension code identification flow;
and after the two-dimension code information file is generated, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for a next two-dimension code recognition process starting instruction.
The two-dimension code detection application needs to receive a two-dimension code identification flow starting instruction before detecting whether the information of the tested module exists, and starts the two-dimension code identification flow based on the two-dimension code identification flow starting instruction, wherein the two-dimension code identification flow starting instruction can be a function test application sent to the two-dimension code detection application or a built-in instruction of the two-dimension code detection application, and when a preset condition is reached, the two-dimension code detection application responds to the built-in two-dimension code flow starting instruction.
After the two-dimension code detection application generates the two-dimension code information file, the camera is controlled to stop recognizing the two-dimension code on the module to be detected, and a next two-dimension code recognition flow starting instruction is waited. In one embodiment, after the test flow of one tested module is finished, when the functional test application detects that a new tested module is placed on the test fixture, a two-dimensional code identification flow starting instruction is sent to the two-dimensional code detection application.
In one embodiment, the controlling the camera to identify the two-dimensional code on the module under test when the module under test in-place information exists includes:
and when the in-place information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module according to preset time.
When the two-dimension code detection application detects that the in-place information of the detected module exists, the camera can be controlled to recognize the two-dimension code according to the preset time, and the camera can orderly expand the recognition process of the two-dimension code through the method.
In one embodiment, the method further comprises the following steps: and when the preset time is exceeded and the camera cannot successfully identify the two-dimensional code on the module to be tested, outputting prompt information.
When the preset time is exceeded, if the camera cannot successfully identify the two-dimensional code on the module to be detected, the camera can feed back identification failure information to the two-dimensional code detection application, and after the two-dimensional code detection application acquires the identification failure information, prompt information is output to remind a user, so that the user can detect related equipment based on the prompt information through the method.
In one embodiment, as shown in fig. 4, a flowchart of a two-dimensional code information obtaining method in a specific embodiment is shown.
Wherein, FT tool refers to function test application, BarCodeTool. exe refers to two-dimension code information detection application, when the functional test application determines that the tested module exists on the test fixture, outputting the location information of the tested module, which is used for identifying the existence of the tested module on the test fixture, for example, by arranging the sensor module on the test fixture, when the sensor module detects that the tested module exists on the test fixture, the sensor module feeds back information of the detected module on the test fixture to the functional test application, and when the functional test application receives the information fed back by the sensor module, determining that the tested module exists on the test fixture, outputting the in-position information of the tested module by the functional test application, the function test application outputs the in-place information of the tested module, and the mode of outputting the in-place information of the tested module can be as follows: and generating an identification configuration file based on the initial configuration file stored in the test kit according to the corresponding test kit.
The function test application is used for outputting the in-place information of the tested module, calling the two-dimension code detection application to identify the two-dimension code on the tested module on the test fixture, responding to a two-dimension code identification flow starting instruction by the two-dimension code detection application, starting a two-dimension code identification flow, detecting whether the in-place information of the tested module exists or not, when the two-dimension code detection application detects the in-place information of the tested module, controlling a camera on the test fixture to identify the two-dimension code on the tested module by the two-dimension code detection application, generating a two-dimension code information file after the camera successfully identifies the two-dimension code on the tested module, storing the related information of the two-dimension code in the two-dimension code information file, controlling the camera to stop identifying the two-dimension code on the tested module after the two-dimension code information file is generated, and waiting for the next two-dimension code identification flow starting instruction.
The method comprises the steps that a function detection application detects whether a two-dimensional code information file exists or not, wherein relevant information obtained by identifying a two-dimensional code on a tested module on a test fixture is stored in the two-dimensional code information file; when the two-dimension code information file is detected to exist, the two-dimension code information file is analyzed, the related information of the two-dimension code, such as the SN number of the module to be tested, is obtained, and then the corresponding test flow is opened.
In an embodiment, as shown in fig. 5, a two-dimensional code information obtaining method is provided, which is described by taking the method as an example of being applied to the electronic device in fig. 1, and includes the following steps:
and step S502, when receiving the tested module positioning information of the tested module on the test fixture, controlling the camera to shoot the two-dimensional code on the tested module.
In one embodiment, the functions of the function test application and the two-dimensional code detection application can be realized in the same application program, and specifically, when receiving the tested module positioning information of the tested module existing on the test fixture, the camera is controlled to shoot the two-dimensional code on the tested module. In one embodiment, the test fixture may be provided with a sensor module, when the sensor module detects that the module under test is present on the test fixture, the sensor module feeds back information that the module under test is present on the test fixture to the functional test application, and when the functional test application receives the information fed back by the sensor module, the sensor module determines that the module under test is present on the test fixture and outputs the information that the module under test is in place.
Step S504 is to perform image recognition on the captured two-dimensional code, and generate a two-dimensional code information file based on the image recognition result.
In one embodiment, the camera is controlled to shoot the two-dimensional code on the module to be tested, the two-dimensional code is subjected to image recognition, and a two-dimensional code information file can be generated based on the image recognition result.
Step S506, analyzing the two-dimension code information file to obtain the relevant information of the two-dimension code on the tested module.
In one embodiment, after the two-dimensional code information file is generated, the two-dimensional code information file is analyzed to obtain the relevant information of the two-dimensional code on the module to be tested, such as the SN number of the two-dimensional code on the module to be tested.
In one embodiment, the method further comprises the following steps:
and after the relevant information of the two-dimension code is acquired, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for the next two-dimension code recognition process starting instruction.
After the relevant information of the two-dimension code is acquired, the camera is controlled to stop recognizing the two-dimension code on the module to be detected, and a next two-dimension code recognition process starting instruction is waited, so that the relevant information of the two-dimension code can be orderly acquired by the method.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a two-dimensional code information acquisition apparatus including: the module under test is put information output module, two-dimensional code information detection module and first two-dimensional code information acquisition module in place, wherein:
a module-under-test in-place information output module 602, configured to output module-under-test in-place information when it is determined that a module under test exists on the test fixture, where the module-under-test in-place information is used to identify that a module under test exists on the test fixture.
The two-dimensional code information detection module 604 is configured to detect whether a two-dimensional code information file exists, where the two-dimensional code information file stores related information obtained by identifying a two-dimensional code on a module to be tested on the test fixture.
The first two-dimension code information obtaining module 606 is configured to, when it is detected that the two-dimension code information file exists, parse the two-dimension code information file, and obtain related information of the two-dimension code.
In one embodiment, the module-under-test in-place information output module is configured to generate an identification configuration file according to the initial configuration file when it is determined that the module-under-test exists on the test fixture.
In one embodiment, the method further comprises the following steps:
and the two-dimension code detection application calling module is used for calling the two-dimension code detection application to identify the two-dimension code on the tested module on the test fixture.
And the alarm module outputs alarm information when the two-dimension code information file is not detected after the tested module in-place information is output and the preset time is exceeded.
In one embodiment, as shown in fig. 7, there is provided a two-dimensional code information acquisition apparatus including: the device comprises a tested module in-place information detection module, a first two-dimensional code identification module and a first two-dimensional code information file generation module.
And the module-under-test in-place information detection module 702 is configured to detect whether there is module-under-test in-place information, where the module-under-test in-place information is used to identify that a module-under-test exists on the test fixture.
And the first two-dimension code identification module 704 is used for controlling the camera to identify the two-dimension code on the tested module when the in-place information of the tested module exists.
The first two-dimension code information file generating module 706 is configured to generate a two-dimension code information file after the camera successfully identifies the two-dimension code on the module to be tested, where the two-dimension code information file stores relevant information of the two-dimension code.
In one embodiment, the method further comprises the following steps:
the first instruction response module is used for responding to a two-dimension code identification flow starting instruction and starting a two-dimension code identification flow; and after the two-dimension code information file is generated, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for a next two-dimension code recognition process starting instruction.
And the first two-dimensional code identification module is used for controlling the camera to identify the two-dimensional code on the tested module according to preset time when the in-place information of the tested module exists.
And the prompt information output module is used for outputting prompt information when the preset time is exceeded and the camera cannot successfully identify the two-dimensional code on the module to be tested.
In one embodiment, as shown in fig. 8, there is provided a two-dimensional code information acquisition apparatus including: the device comprises a second two-dimension code identification module, a second two-dimension code information file generation module and a second two-dimension code information acquisition module.
And the second two-dimension code recognition module 802 is configured to control the camera to shoot the two-dimension code on the tested module when receiving the in-place information of the tested module on the test fixture.
And a second two-dimensional code information file generating module 804, configured to perform image recognition on the captured two-dimensional code, and generate a two-dimensional code information file based on an image recognition result.
A second two-dimension code information obtaining module 806, configured to parse the two-dimension code information file to obtain relevant information of the two-dimension code on the module to be tested.
In one embodiment, the method further comprises the following steps:
and the second instruction response module is used for controlling the camera to stop recognizing the two-dimension code on the module to be tested after acquiring the related information of the two-dimension code and waiting for a next two-dimension code recognition process starting instruction.
For specific limitations of the two-dimensional code information acquisition device, reference may be made to the above limitations of the two-dimensional code information acquisition method, which is not described herein again. All or part of each module in the two-dimensional code information acquisition device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a two-dimensional code information acquisition method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the two-dimensional code information obtaining method when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described two-dimensional code information acquisition method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A two-dimensional code information acquisition method is characterized by comprising the following steps:
when the tested module exists on the test fixture, outputting the in-place information of the tested module, wherein the in-place information of the tested module is used for marking the tested module on the test fixture;
detecting whether a two-dimensional code information file exists or not, wherein the two-dimensional code information file stores relevant information obtained by identifying a two-dimensional code on a tested module on the test fixture;
and when the two-dimension code information file is detected to exist, analyzing the two-dimension code information file to acquire the related information of the two-dimension code.
2. The method of claim 1, wherein outputting the module-under-test-in-place information when it is determined that the module-under-test is present on the test fixture comprises:
and when the tested module exists on the test fixture, generating an identification configuration file according to the initial configuration file.
3. The method of claim 1, wherein after outputting the module-under-test location information and before detecting whether the two-dimensional code information file exists, the method further comprises:
and calling a two-dimensional code detection application to identify the two-dimensional code on the tested module on the test fixture.
4. The method of claim 1, further comprising:
and after outputting the in-place information of the tested module, outputting alarm information when the two-dimensional code information file is not detected after the preset time.
5. A two-dimensional code information acquisition method is characterized by comprising the following steps:
detecting whether the in-place information of the tested module exists or not, wherein the in-place information of the tested module is used for identifying the tested module on the test fixture;
when the in-place information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module;
and after the camera successfully identifies the two-dimensional code on the tested module, generating a two-dimensional code information file, wherein the two-dimensional code information file stores relevant information obtained by identifying the two-dimensional code on the tested module on the test fixture.
6. The method of claim 5, wherein before detecting whether the module under test is in-place, further comprising: responding to a two-dimension code identification flow starting instruction, and starting a two-dimension code identification flow;
and after the two-dimension code information file is generated, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for a next two-dimension code recognition process starting instruction.
7. The method of claim 5, wherein the controlling a camera to identify a two-dimensional code on the module under test when the module under test in-place information exists comprises:
and when the in-place information of the tested module exists, controlling a camera to identify the two-dimensional code on the tested module according to preset time.
8. The method of claim 5, further comprising:
and when the preset time is exceeded and the camera cannot successfully identify the two-dimensional code on the module to be tested, outputting prompt information.
9. A two-dimensional code information acquisition method is characterized by comprising the following steps:
when receiving the tested module positioning information of the tested module on the testing jig, controlling the camera to shoot the two-dimensional code on the tested module;
performing image recognition on the shot two-dimensional code, and generating a two-dimensional code information file based on an image recognition result;
and analyzing the two-dimension code information file to obtain the relevant information of the two-dimension code on the tested module.
10. The method of claim 9, further comprising:
and after the relevant information of the two-dimension code is acquired, controlling the camera to stop recognizing the two-dimension code on the module to be tested, and waiting for the next two-dimension code recognition process starting instruction.
11. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 10 when executing the computer program.
12. 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 claims 1 to 10.
CN202110419373.2A 2021-04-19 2021-04-19 Two-dimensional code information acquisition method, electronic device and storage medium Pending CN113221593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110419373.2A CN113221593A (en) 2021-04-19 2021-04-19 Two-dimensional code information acquisition method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110419373.2A CN113221593A (en) 2021-04-19 2021-04-19 Two-dimensional code information acquisition method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113221593A true CN113221593A (en) 2021-08-06

Family

ID=77087792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110419373.2A Pending CN113221593A (en) 2021-04-19 2021-04-19 Two-dimensional code information acquisition method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113221593A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113673651A (en) * 2021-09-23 2021-11-19 上海凌瓴信息科技有限公司 Structured product information management system and method based on two-dimensional code technology
CN114358221A (en) * 2021-12-08 2022-04-15 深圳市天视通技术有限公司 Module placing method, product testing device, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206161796U (en) * 2016-10-31 2017-05-10 深圳市华扬通信技术有限公司 Isolator / circulator is tried on clothes from dynamic testing and is put
CN109472178A (en) * 2018-09-18 2019-03-15 广州思林杰网络科技有限公司 Two-dimensional code scanning method
CN111398701A (en) * 2019-01-02 2020-07-10 深圳市广和通无线股份有限公司 Equipment testing method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206161796U (en) * 2016-10-31 2017-05-10 深圳市华扬通信技术有限公司 Isolator / circulator is tried on clothes from dynamic testing and is put
CN109472178A (en) * 2018-09-18 2019-03-15 广州思林杰网络科技有限公司 Two-dimensional code scanning method
CN111398701A (en) * 2019-01-02 2020-07-10 深圳市广和通无线股份有限公司 Equipment testing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113673651A (en) * 2021-09-23 2021-11-19 上海凌瓴信息科技有限公司 Structured product information management system and method based on two-dimensional code technology
CN114358221A (en) * 2021-12-08 2022-04-15 深圳市天视通技术有限公司 Module placing method, product testing device, system and storage medium

Similar Documents

Publication Publication Date Title
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
CN109542761B (en) Software quality evaluation method, device and storage medium
US11137909B2 (en) Secure data entry via a virtual keyboard
CN110134593B (en) Software testing method and device, electronic equipment and storage medium
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN113221593A (en) Two-dimensional code information acquisition method, electronic device and storage medium
WO2019227708A1 (en) Online debugging apparatus and method for test case, and computer-readable storage medium
CN113593071A (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN109408261B (en) Application program crash processing method and device, computer equipment and storage medium
CN109726134B (en) Interface test method and system
CN110162453B (en) Test method, test device, computer readable storage medium and computer equipment
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN110267215B (en) Data detection method, equipment and storage medium
CN113254331A (en) Model test method, device, storage medium and program product
CN112083851A (en) Interface positioning method and device for BIOS (basic input output System) configuration options, server and computer readable storage medium
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
CN110716914B (en) Database configuration method, system, computer readable storage medium and terminal device
CN108897772B (en) Data source supplementing method and device, computer equipment and storage medium
CN107797927B (en) Application automation test method, device, equipment and readable storage medium
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN112558982B (en) Code detection method and device and computer equipment
CN113672507A (en) Software source code detection method and device, computer equipment and storage medium
CN112084077B (en) USB equipment aging test method and device, medium and USB equipment
CN111398701B (en) Equipment test method, device, computer equipment and storage medium
CN109450966B (en) Equipment positioning method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210806