CN114330405A - Data acquisition method and device, electronic device and readable storage medium - Google Patents

Data acquisition method and device, electronic device and readable storage medium Download PDF

Info

Publication number
CN114330405A
CN114330405A CN202111636623.4A CN202111636623A CN114330405A CN 114330405 A CN114330405 A CN 114330405A CN 202111636623 A CN202111636623 A CN 202111636623A CN 114330405 A CN114330405 A CN 114330405A
Authority
CN
China
Prior art keywords
data
dimensional code
group data
code data
analysis
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
CN202111636623.4A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111636623.4A priority Critical patent/CN114330405A/en
Publication of CN114330405A publication Critical patent/CN114330405A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to a data acquisition method, a data acquisition device, an electronic device and a readable storage medium, wherein the method comprises the following steps: receiving two-dimensional code group data, wherein the two-dimensional code group data comprises a plurality of two-dimensional code data; and analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data. Through making up a plurality of two-dimensional code data into two-dimensional code group data, obtain analytic data with two-dimensional code group data as a data unit for compare in traditional two-dimensional code, the capacity of two-dimensional code group data is multiplied and is increased, and is comparatively simple convenient in the realization simultaneously.

Description

Data acquisition method and device, electronic device and readable storage medium
Technical Field
The present application relates to the field of information processing, and in particular, to a data acquisition method, an apparatus, an electronic apparatus, and a readable storage medium.
Background
With the development of mobile terminals, two-dimensional codes become a common encoding mode on mobile terminals, compared with the conventional encoding mode. In the traditional bar code, a two-dimensional code can store more information, and the capacity of the existing two-dimensional code is about dozens of k; for the increasing information demand, the capacity of the two-dimensional code cannot meet the use demand under some conditions.
Disclosure of Invention
The application provides a data acquisition method, a data acquisition device, an electronic device and a readable storage medium, and aims to solve the technical problem that the capacity of a two-dimensional code is too small in the prior art.
In order to solve the technical problem mentioned above or at least partially solve the technical problem mentioned above, the present application provides a data acquisition method, comprising the steps of:
receiving two-dimensional code group data, wherein the two-dimensional code group data comprises a plurality of two-dimensional code data;
and analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data.
Optionally, the analyzing the two-dimensional code data to obtain the analysis data corresponding to the two-dimensional code group data includes:
analyzing each two-dimensional code data to obtain a plurality of analyzed subdata;
and obtaining the analysis data according to the plurality of analysis subdata.
Optionally, the obtaining the parsed data according to the plurality of parsed sub-data includes:
acquiring a sequence identifier of the two-dimensional code data corresponding to each analytic subdata;
sequencing each of the analyzed subdata based on the sequence identification;
and integrating the analysis subdata obtained after the sequencing operation to obtain the analysis data.
Optionally, the analyzing each two-dimensional code data to obtain a plurality of analyzed sub-data includes:
acquiring array information and color information of the two-dimensional code data aiming at each two-dimensional code data;
and carrying out analysis operation based on the array information and the color information to obtain the analysis subdata.
Optionally, the receiving the two-dimensional code group data includes:
receiving current two-dimensional code data, and judging whether the two-dimensional code group data is received completely according to the current two-dimensional code data;
if the two-dimensional code group data is not received completely, adding the current two-dimensional code data into temporary group data;
and if the two-dimensional code group data is received, taking the temporary group data as the two-dimensional code group data.
Optionally, the determining whether the two-dimensional code group data is received according to the current two-dimensional code data includes:
if the number of the two-dimensional code data stored in the temporary group data is more than 1, acquiring the temporary group data;
judging whether the current two-dimensional code data are consistent with two-dimensional code data stored firstly in the temporary group data;
and if the current two-dimensional code data are consistent with the two-dimensional code data stored firstly in the temporary group data, finishing receiving the two-dimensional code group data.
Optionally, the adding the current two-dimensional code data to temporary group data includes:
acquiring the temporary group data, and judging whether the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data;
and if the current two-dimensional code data is not consistent with the two-dimensional code data stored in the temporary group data, adding the current two-dimensional code data into the temporary group data.
In order to achieve the above object, the present invention also provides a data acquisition apparatus, including:
the device comprises a first receiving module, a second receiving module and a first processing module, wherein the first receiving module is used for receiving two-dimensional code group data which comprises a plurality of two-dimensional code data;
and the first analysis module is used for analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data.
Optionally, the first parsing module includes:
the first analysis unit is used for respectively carrying out analysis operation on the two-dimensional code data to obtain a plurality of analysis subdata;
and the first execution unit is used for obtaining the analysis data according to the plurality of analysis subdata.
Optionally, the first execution unit includes:
the first obtaining subunit is used for obtaining the sequence identifier of the two-dimensional code data corresponding to each analytic subdata;
the first sorting subunit is used for sorting each analysis subdata based on the sequence identifier;
and the first integration subunit is used for integrating the analysis subdata obtained after the sequencing operation to obtain the analysis data.
Optionally, the first parsing unit includes:
the second acquisition subunit is used for acquiring array information and color information of the two-dimensional code data aiming at each two-dimensional code data;
and the first analysis subunit is used for carrying out analysis operation based on the array information and the color information to obtain the analysis sub-data.
Optionally, the first receiving module includes:
the first receiving unit is used for receiving the current two-dimensional code data and judging whether the two-dimensional code group data is received completely according to the current two-dimensional code data;
a first adding unit, configured to add the current two-dimensional code data to temporary group data if the two-dimensional code group data is not received;
and the second execution unit is used for taking the temporary group data as the two-dimensional code group data if the two-dimensional code group data is received completely.
Optionally, the first receiving unit includes:
a third acquiring subunit, configured to acquire the temporary group data if the number of the two-dimensional code data stored in the temporary group data is greater than 1;
the first judging subunit is used for judging whether the current two-dimensional code data is consistent with the two-dimensional code data stored firstly in the temporary group data;
and the first execution subunit is configured to complete receiving of the two-dimensional code group data if the current two-dimensional code data is consistent with the two-dimensional code data stored first in the temporary group data.
Optionally, the first adding unit includes:
the fourth acquisition subunit is used for acquiring the temporary group data and judging whether the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data;
and the first adding subunit is used for adding the current two-dimensional code data into the temporary group data if the current two-dimensional code data is not consistent with the two-dimensional code data stored in the temporary group data.
To achieve the above object, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the data acquisition method as described above.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data acquisition method as described above.
The invention provides a data acquisition method, a data acquisition device, an electronic device and a readable storage medium, which are used for receiving two-dimensional code group data, wherein the two-dimensional code group data comprises a plurality of two-dimensional code data; and analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data. Through making up a plurality of two-dimensional code data into two-dimensional code group data, obtain analytic data with two-dimensional code group data as a data unit for compare in traditional two-dimensional code, the capacity of two-dimensional code group data is multiplied and is increased, and is comparatively simple convenient in the realization simultaneously.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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 for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram illustrating a first embodiment of a data acquisition method according to the present invention;
FIG. 2 is a detailed flowchart of step S22 of the data acquisition method according to the second embodiment of the present invention;
fig. 3 is a schematic block diagram of an electronic device according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
The invention provides a data acquisition method, referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of the data acquisition method of the invention, and the method comprises the following steps:
step S10, receiving two-dimensional code group data, wherein the two-dimensional code group data comprises a plurality of two-dimensional code data;
the two-dimensional code is a graph which is distributed on a plane according to a certain rule by using a certain specific geometric figure and records data symbol information; the concept of '0' and '1' bit stream which forms the internal logic base of computer is skillfully utilized in coding, a plurality of geometric shapes corresponding to binary system are used for representing literal numerical information, and the information is automatically read by an image input device or an optoelectronic scanning device so as to realize the automatic processing of the information: it has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Meanwhile, the method also has the function of automatically identifying information of different rows and processing the graph rotation change points.
The two-dimensional code data can be set according to the size of data actually carried. It should be noted that each two-dimensional code data in the two-dimensional code group data is numbered according to the sequence of the corresponding data.
Step S20, analyzing each two-dimensional code data to obtain analyzed data corresponding to the two-dimensional code group data.
Analyzing data corresponding to the two-dimensional code group data are dispersed to each two-dimensional code data for bearing; therefore, after the two-dimensional code data are analyzed, the analysis data corresponding to the two-dimensional code group data can be obtained according to the analysis result. When generating two-dimensional code group data, firstly compiling original data into binary data, splitting the compiled binary data according to the capacity of a single binary code to obtain a plurality of binary unit data, generating one piece of two-dimensional code data based on each binary unit data, and integrating each piece of two-dimensional code data to obtain the two-dimensional code group data; the two-dimensional code group data can be set in a video or moving picture form, for example, a video form; when the two-dimensional code group data contains 10 two-dimensional code data, the video length is 1 second, and the video frame number is 60; at the moment, every 6 frames of two-dimensional code data are displayed, and the time for displaying each two-dimensional code data is 0.1 second; and a loop can be set for the video to prolong the video time, and the two-dimensional code data are repeatedly and sequentially played by the video.
This embodiment is through making up a plurality of two-dimensional code data into two-dimensional code group data, obtains analytic data with two-dimensional code group data as a data unit for compare in traditional two-dimensional code, the capacity of two-dimensional code group data is multiplied and is increased, and is comparatively simple convenient in the realization simultaneously.
Further, in the second embodiment of the data acquisition method according to the present invention proposed based on the first embodiment of the present invention, the step S20 includes the steps of:
step S21, analyzing each two-dimensional code data to obtain a plurality of analyzed subdata;
and step S22, obtaining the analytic data according to the plurality of analytic subdata.
The specific parsing operation may be set according to a specific codec algorithm, and is not limited herein. After the analytic subdata corresponding to each two-dimensional code data is obtained through analysis, corresponding analytic data can be obtained according to the analytic subdata.
Referring to fig. 2, the step S22 includes the steps of:
step S221, acquiring sequence identifiers of the two-dimensional code data corresponding to the analytic subdata;
step S222, sequencing each of the analyzed subdata based on the sequence identifier;
step S223, integrating each of the analyzed subdata obtained after the sorting operation to obtain the analyzed data.
It should be noted that the sequence identifier represents an arrangement sequence of the two-dimensional code data in the two-dimensional code group data, but not an acquisition sequence of the two-dimensional code data; taking the video form in the foregoing embodiment as an example, each two-dimensional code data in the two-dimensional code group data in the video is played circularly, and when a user acquires two-dimensional code data through a mobile device, the two-dimensional code data is not necessarily acquired from the first two-dimensional code data; if the two-dimensional code data with the sequence identification of 5 can be obtained, the two-dimensional code data with the sequence identification of 6-7-8-9-10-1-2-3-4 can be obtained in sequence; at this time, if the two-dimensional code data are integrated according to the acquisition sequence of the two-dimensional code data, wrong analysis data can be obtained; in order to solve the problem, a sequence identifier is set for each two-dimensional code data, and after the analysis subdata is obtained, the analysis subdata is sequenced based on the sequence identifier, so that the sequence of the analysis subdata is consistent with the corresponding sequence in the analysis data, and the accuracy of the analysis data obtained by analyzing the subdata is ensured.
The embodiment can accurately obtain the analysis data by analyzing the analysis subdata.
Further, in a third embodiment of the data acquisition method according to the present invention proposed based on the second embodiment of the present invention, the step S21 includes the steps of:
step S211, aiming at each two-dimensional code data, acquiring array information and color information of the two-dimensional code data;
step S212, analyzing operation is carried out based on the array information and the color information to obtain the analysis subdata.
The two-dimensional code based on the two-dimensional code data in the embodiment can be a black-and-white two-dimensional code or a color two-dimensional code; the black-and-white two-dimensional code mainly bears data through array information; the color two-dimensional code combines color information and array information to jointly carry data; color two-dimensional codes have a much larger capacity than black and white two-dimensional codes. Specifically, the color two-dimensional code is encoded by compiling data into a binary number string, and then encoding the binary number string and image information into a group of arrays which can be interpreted by a specific rule through a specific algorithm and by combining the color content of the whole picture. The specific encoding rule may be set according to the actual application scenario and the need, which is not described herein. The encoding mode of the black-and-white two-dimensional code can be set according to the actual application scene and the requirement, and is not described herein.
It should be noted that, in a two-dimensional code group data, only a black and white two-dimensional code or a color two-dimensional code may be included, and a black two-dimensional code and a color two-dimensional code may also be included at the same time.
The present embodiment can further improve the capacity of two-dimensional code group data.
Further, in a fourth embodiment of the data acquisition method according to the present invention proposed based on the first embodiment of the present invention, the step S10 includes the steps of:
step S11, receiving current two-dimensional code data, and judging whether the two-dimensional code group data is received completely according to the current two-dimensional code data;
step S12, if the two-dimensional code group data is not received, adding the current two-dimensional code data into temporary group data;
step S13, if the two-dimensional code group data is received, the temporary group data is used as the two-dimensional code group data.
The temporary group data is a set of two-dimensional code data that has been currently received. Because the two-dimensional code group data comprises a plurality of two-dimensional code data, and the two-dimensional code group data can be played circularly, whether the two-dimensional code data in the two-dimensional code group data are received or not needs to be judged when the two-dimensional code data are received, and the complete two-dimensional code group data are determined to be obtained only after the two-dimensional code data are received; and when the two-dimensional code data is not received, keeping the receiving state.
The step S11 includes the steps of:
step S111, if the number of the two-dimensional code data stored in the temporary group data is more than 1, acquiring the temporary group data;
step S112, judging whether the current two-dimensional code data is consistent with the two-dimensional code data stored firstly in the temporary group data;
step S113, if the current two-dimensional code data is consistent with the two-dimensional code data stored first in the temporary group of data, the receiving of the two-dimensional code group data is completed.
Because the two-dimensional code group data comprises a plurality of two-dimensional code data, when the two-dimensional code data are received, the two-dimensional code data stored in the temporary group data are at least 2, and therefore when the number of the two-dimensional code data stored in the temporary group data is less than or equal to 1, the two-dimensional code data are not received completely; therefore, only when the number of the two-dimensional code data stored in the temporary group data is more than 1, whether the two-dimensional code data is received is judged, and invalid judging steps are reduced.
The two-dimensional code data in the two-dimensional code group data are played in a circulating mode, so that when the two-dimensional code data stored firstly are received again, the two-dimensional code data are received in a complete circulating mode, and the two-dimensional code data are considered to be received completely. Further, in the actual application process, due to the fact that the mobile device is operated incorrectly or the user operates improperly, some two-dimensional code data are missed to be received in the receiving process, at this time, a preset number of cycle periods can be continued, and the two-dimensional code data which are missed to be received are filled in the cycle periods.
Further, a two-dimensional code group data list can be added to each two-dimensional code data, and the two-dimensional code group data list is respectively recorded with the sequence identification of each two-dimensional code data; when one two-dimensional code data is received, the two-dimensional code group data list is marked with the sequence identification corresponding to the two-dimensional code data, and when all the sequence identifications on the two-dimensional code group data list are marked, the two-dimensional code data are received completely.
The embodiment can accurately judge whether the two-dimensional code data is received completely.
Further, in a fifth embodiment of the data acquisition method according to the present invention proposed based on the fourth embodiment of the present invention, the step S12 includes the steps of:
step S121, acquiring the temporary group data, and judging whether the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data;
and S122, if the current two-dimensional code data is not consistent with the two-dimensional code data stored in the temporary group data, adding the current two-dimensional code data into the temporary group data.
If the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data, the current two-dimensional code data is not added into the temporary group data
Since the display of the single two-dimensional code data lasts for a period of time, the mobile device will repeatedly scan its corresponding two-dimensional code during the period of time; in order to avoid repeatedly acquiring the same two-dimensional code data, two-dimensional code data consistent with the stored two-dimensional code data are screened out.
The embodiment can avoid repeatedly acquiring the same two-dimensional code data.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The present application also provides a data acquisition apparatus for implementing the data acquisition method, the data acquisition apparatus including:
the device comprises a first receiving module, a second receiving module and a first processing module, wherein the first receiving module is used for receiving two-dimensional code group data which comprises a plurality of two-dimensional code data;
and the first analysis module is used for analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data.
This data acquisition device is through making up a plurality of two-dimensional code data into two-dimensional code group data, obtains analytic data with two-dimensional code group data as a data unit for compare in traditional two-dimensional code, the capacity of two-dimensional code group data is multiplied and is increased, and is comparatively simple convenient in the realization simultaneously.
It should be noted that the first receiving module in this embodiment may be configured to execute step S10 in this embodiment, and the first parsing module in this embodiment may be configured to execute step S20 in this embodiment.
Further, the first parsing module comprises:
the first analysis unit is used for respectively carrying out analysis operation on the two-dimensional code data to obtain a plurality of analysis subdata;
and the first execution unit is used for obtaining the analysis data according to the plurality of analysis subdata.
Further, the first execution unit includes:
the first obtaining subunit is used for obtaining the sequence identifier of the two-dimensional code data corresponding to each analytic subdata;
the first sorting subunit is used for sorting each analysis subdata based on the sequence identifier;
and the first integration subunit is used for integrating the analysis subdata obtained after the sequencing operation to obtain the analysis data.
Further, the first parsing unit includes:
the second acquisition subunit is used for acquiring array information and color information of the two-dimensional code data aiming at each two-dimensional code data;
and the first analysis subunit is used for carrying out analysis operation based on the array information and the color information to obtain the analysis sub-data.
Further, the first receiving module comprises:
the first receiving unit is used for receiving the current two-dimensional code data and judging whether the two-dimensional code group data is received completely according to the current two-dimensional code data;
a first adding unit, configured to add the current two-dimensional code data to temporary group data if the two-dimensional code group data is not received;
and the second execution unit is used for taking the temporary group data as the two-dimensional code group data if the two-dimensional code group data is received completely.
Further, the first receiving unit includes:
a third acquiring subunit, configured to acquire the temporary group data if the number of the two-dimensional code data stored in the temporary group data is greater than 1;
the first judging subunit is used for judging whether the current two-dimensional code data is consistent with the two-dimensional code data stored firstly in the temporary group data;
and the first execution subunit is configured to complete receiving of the two-dimensional code group data if the current two-dimensional code data is consistent with the two-dimensional code data stored first in the temporary group data.
Further, the first adding unit includes:
the fourth acquisition subunit is used for acquiring the temporary group data and judging whether the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data;
and the first adding subunit is used for adding the current two-dimensional code data into the temporary group data if the current two-dimensional code data is not consistent with the two-dimensional code data stored in the temporary group data.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. The modules may be implemented by software as part of the apparatus, or may be implemented by hardware, where the hardware environment includes a network environment.
Referring to fig. 3, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30 in a hardware structure. In the electronic device, the processor 30 is connected to the memory 20 and the communication module 10, respectively, the memory 20 stores thereon a computer program, which is executed by the processor 30 at the same time, and when executed, implements the steps of the above-mentioned method embodiments.
The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device, where the external communication device may be another electronic apparatus, a server, or an internet of things device, such as a television.
The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (for example, parsing each two-dimensional code data to obtain parsed data corresponding to the two-dimensional code group data), and the like; the storage data area may include a database, and the storage data area may store data or information created according to use of the system, or the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 30, which is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the electronic device. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.
Although not shown in fig. 3, the electronic device may further include a circuit control module, which is used for connecting with a power supply to ensure the normal operation of other components. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 3 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be the Memory 20 in the electronic apparatus in fig. 3, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes instructions for enabling a terminal device (which may be a television, an automobile, a mobile phone, a computer, a server, a terminal, or a network device) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for data acquisition, the method comprising:
receiving two-dimensional code group data, wherein the two-dimensional code group data comprises a plurality of two-dimensional code data;
and analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data.
2. The data acquisition method as claimed in claim 1, wherein the analyzing each two-dimensional code data to obtain the analysis data corresponding to the two-dimensional code group data comprises:
analyzing each two-dimensional code data to obtain a plurality of analyzed subdata;
and obtaining the analysis data according to the plurality of analysis subdata.
3. The data obtaining method of claim 2, wherein the obtaining the parsed data from the plurality of parsed sub-data comprises:
acquiring a sequence identifier of the two-dimensional code data corresponding to each analytic subdata;
sequencing each of the analyzed subdata based on the sequence identification;
and integrating the analysis subdata obtained after the sequencing operation to obtain the analysis data.
4. The data acquisition method as claimed in claim 2, wherein the parsing each of the two-dimensional code data to obtain a plurality of parsed sub-data comprises:
acquiring array information and color information of the two-dimensional code data aiming at each two-dimensional code data;
and carrying out analysis operation based on the array information and the color information to obtain the analysis subdata.
5. The data acquisition method of claim 1, wherein the receiving two-dimensional code group data comprises:
receiving current two-dimensional code data, and judging whether the two-dimensional code group data is received completely according to the current two-dimensional code data;
if the two-dimensional code group data is not received completely, adding the current two-dimensional code data into temporary group data;
and if the two-dimensional code group data is received, taking the temporary group data as the two-dimensional code group data.
6. The data obtaining method of claim 5, wherein the determining whether the two-dimensional code group data is received according to the current two-dimensional code data comprises:
if the number of the two-dimensional code data stored in the temporary group data is more than 1, acquiring the temporary group data;
judging whether the current two-dimensional code data are consistent with two-dimensional code data stored firstly in the temporary group data;
and if the current two-dimensional code data are consistent with the two-dimensional code data stored firstly in the temporary group data, finishing receiving the two-dimensional code group data.
7. The data acquisition method as set forth in claim 5, wherein the adding the current two-dimensional code data to temporary group data comprises:
acquiring the temporary group data, and judging whether the current two-dimensional code data is consistent with at least one two-dimensional code data stored in the temporary group data;
and if the current two-dimensional code data is not consistent with the two-dimensional code data stored in the temporary group data, adding the current two-dimensional code data into the temporary group data.
8. A data acquisition apparatus, characterized in that the data acquisition apparatus comprises:
the device comprises a first receiving module, a second receiving module and a first processing module, wherein the first receiving module is used for receiving two-dimensional code group data which comprises a plurality of two-dimensional code data;
and the first analysis module is used for analyzing the two-dimensional code data to obtain analysis data corresponding to the two-dimensional code group data.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the data acquisition method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the data acquisition method according to one of claims 1 to 7.
CN202111636623.4A 2021-12-28 2021-12-28 Data acquisition method and device, electronic device and readable storage medium Pending CN114330405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111636623.4A CN114330405A (en) 2021-12-28 2021-12-28 Data acquisition method and device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111636623.4A CN114330405A (en) 2021-12-28 2021-12-28 Data acquisition method and device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114330405A true CN114330405A (en) 2022-04-12

Family

ID=81016548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111636623.4A Pending CN114330405A (en) 2021-12-28 2021-12-28 Data acquisition method and device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114330405A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075747A1 (en) * 1997-07-15 2004-04-22 Kia Silverbrook Monolithic integrated circuit having a number of programmable processing elements
CN104281864A (en) * 2013-07-04 2015-01-14 百度在线网络技术(北京)有限公司 Method and equipment for generating two-dimensional codes
CN107133270A (en) * 2017-04-01 2017-09-05 广东电网有限责任公司清远供电局 Two-dimensional code generation method and device, the data processing method of Quick Response Code and device
EP3336744A1 (en) * 2016-12-19 2018-06-20 Nestec S.A. Method and device for decoding a graphical code
CN109062648A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and storage medium
CN109977716A (en) * 2019-03-14 2019-07-05 北京龙贝世纪科技股份有限公司 A kind of data decoding method, terminal and storage medium
CN110650111A (en) * 2018-06-27 2020-01-03 上海赢亥信息科技有限公司 Digital asset transmission method, system, terminal and storage medium
CN111353321A (en) * 2020-02-24 2020-06-30 口碑(上海)信息技术有限公司 Data generating and analyzing method and device, computer storage medium and electronic device
CN112488695A (en) * 2019-09-11 2021-03-12 电子湾有限公司 On-the-spot transaction processing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075747A1 (en) * 1997-07-15 2004-04-22 Kia Silverbrook Monolithic integrated circuit having a number of programmable processing elements
CN104281864A (en) * 2013-07-04 2015-01-14 百度在线网络技术(北京)有限公司 Method and equipment for generating two-dimensional codes
EP3336744A1 (en) * 2016-12-19 2018-06-20 Nestec S.A. Method and device for decoding a graphical code
CN107133270A (en) * 2017-04-01 2017-09-05 广东电网有限责任公司清远供电局 Two-dimensional code generation method and device, the data processing method of Quick Response Code and device
CN110650111A (en) * 2018-06-27 2020-01-03 上海赢亥信息科技有限公司 Digital asset transmission method, system, terminal and storage medium
CN109062648A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and storage medium
CN109977716A (en) * 2019-03-14 2019-07-05 北京龙贝世纪科技股份有限公司 A kind of data decoding method, terminal and storage medium
CN112488695A (en) * 2019-09-11 2021-03-12 电子湾有限公司 On-the-spot transaction processing system
CN111353321A (en) * 2020-02-24 2020-06-30 口碑(上海)信息技术有限公司 Data generating and analyzing method and device, computer storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN111475381B (en) Page rendering detection method and device
CN111821693A (en) Perspective plug-in detection method, device, equipment and storage medium for game
CN112612690A (en) User interface information processing method and device, electronic equipment and storage medium
CN112671878B (en) Block chain information subscription method, device, server and storage medium
CN114330405A (en) Data acquisition method and device, electronic device and readable storage medium
CN109672608B (en) Method for transmitting messages according to time
CN113434405B (en) Method and device for determining test file, storage medium and electronic device
CN115115968A (en) Video quality evaluation method and device and computer readable storage medium
CN113553469B (en) Data processing method, device, electronic equipment and computer storage medium
CN107454471A (en) Method for turning on television, television set and computer-readable recording medium
CN107508705A (en) The resource tree constructing method and computing device of a kind of HTTP elements
CN110221958B (en) Application testing method, device, computing equipment and computer readable storage medium
CN113486996A (en) Two-dimensional code image processing method and device, storage medium and electronic device
CN113327302A (en) Picture processing method and device, storage medium and electronic device
CN112434234A (en) Frame extraction method and system based on browser
CN113778893B (en) Method, device, equipment and storage medium for generating test case of dialogue robot
CN114173154B (en) Video processing method and system
CN113568840B (en) Method and system for identifying transition drawing
CN117271371B (en) Performance test method, device, computer equipment and storage medium
CN114025240B (en) Method and device for determining television equipment capability, storage medium and electronic device
CN115840834B (en) Face database quick search method and system
CN110677251B (en) Information processing method, device, medium and equipment
CN113742553B (en) Data processing method and device
CN111353320B (en) Code scanning identification method and device
CN116302932A (en) Layering test method, layering test device, electronic 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