Image generation method applied to data acquisition system and data acquisition system
The data collection system generates barcode images for training without physical attachment, reducing material consumption and enhancing efficiency by capturing images from various angles, thus improving model training.
Patent Information
- Application Number
- CN202510275803.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-07-15
AI Technical Summary
In the prior art, barcode printing on the material causes material consumption and low collection efficiency.
By generating barcode images and projecting them on the screen, shooting from multiple angles is performed to generate target training sets, reducing material consumption and improving acquisition efficiency.
Reduces material consumption, improves the efficiency of barcode image acquisition and the diversity of training sets.
Smart Images

Figure CN120318349A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and particularly to a method for generating device images and a data acquisition system applied to a data acquisition system. Background Art
[0002] With the development of science and technology, bar code technology has emerged. Through bar code technology, the accuracy and speed of information recognition can be improved. For example, a barcode scanner takes pictures of the barcodes of materials on a production line to obtain the data information corresponding to the materials by recognizing the data information represented by the barcodes. In order to recognize the data information corresponding to the barcodes in the images, images taken by the barcode scanner of the barcodes of the materials can be collected.
[0003] However, in the prior art, barcodes are usually printed on materials and then the materials are photographed for data collection. This is likely to cause consumption of materials and low collection efficiency. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a device image generation method, a storage medium, and a data acquisition system applied to a data acquisition system that can obtain a training set of a downstream model by generating a barcode image without actually photographing the materials, thereby improving the collection efficiency of the barcode image and further improving the training efficiency of the downstream model.
[0005] In a first aspect, this application provides a data acquisition system, including:
[0006] An image generation device, configured to obtain target data, generate a barcode image that matches the target data; obtain display information of a target object, process the barcode image based on the display information to obtain a target barcode image, and generate a template image including the target barcode image, where the barcode image is used to be attached to the target object;
[0007] A projection device, configured to receive the template image sent by the image generation device and project the template image onto a target screen;
[0008] A photographing device, configured to photograph the template image displayed on the target screen from multiple angles to obtain a set of target images photographed at different angles, and send the set of target images to a data processing device;
[0009] A data processing device, configured to receive the set of target images sent by the photographing device and process the set of target images to obtain a target training set.
[0010] In a second aspect, this application further provides an image generation method applied to a data acquisition system. The method includes:
[0011] Obtain target data and generate a barcode image that matches the target data;
[0012] Obtain the display information of the target object, and process the barcode image based on the display information to obtain a target barcode image;
[0013] Generate a template image containing the target barcode image based on the target barcode image; the barcode image is used to be attached to the target object.
[0014] In a third aspect, the present application further provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps implemented in the above image generation method are realized.
[0015] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method implemented in the above image generation method are realized.
[0016] In a fifth aspect, the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps in the method implemented in the above image generation method are realized.
[0017] In the above data acquisition system, the image generation device obtains a template image, and after the projection device obtains the template image, the shooting device shoots the template image projected onto the screen to obtain a target image. In this way, the consumption of the target object can be reduced when collecting barcode-related training images. That is, there is no need to print the barcode on the target object and then directly shoot the target object, so the consumption of the target object can be reduced. And by shooting the template image displayed on the target screen from multiple angles, images obtained by shooting the barcode in various situations can be obtained, thereby improving the diversity of the target training set. Description of the Drawings
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application or related technologies. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0019] Figure 1 It is a schematic structural diagram of a data acquisition system in an embodiment;
[0020] Figure 2 It is a schematic diagram of a template image in an embodiment;
[0021] Figure 3 It is a schematic diagram of the working process of a data acquisition system in an embodiment;
[0022] Figure 4 It is a schematic diagram of the process of an image generation method applied to a data acquisition system in an embodiment;
[0023] Figure 5 It is the internal structure diagram of a computer device in an embodiment;
[0024] Figure 6 It is the internal structure diagram of a computer device in another embodiment;
[0025] Figure 7 It is the structural schematic diagram of a computer storage medium in an embodiment. Detailed implementation manners
[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] With the development of science and technology, bar code technology has emerged as the times require. A camera scanner needs to take pictures of the bar codes attached to objects to analyze the captured images so as to obtain bar code information. Since the angles, environments and devices are different when taking pictures of bar codes, in order to successfully parse the information pointed to by the bar codes in the images, various different images need to be collected to train the model for analyzing images, so that the model can successfully parse the information pointed to by the bar codes for various images.
[0028] The embodiment of the present application provides a data acquisition system. Through this data acquisition system, a template image containing a target bar code image is generated. And the template image is taken at different angles, so as to collect images of bar codes taken in different scenarios. Compared with the prior art in which bar codes are pasted or printed on articles and then the bar codes attached to the articles are taken pictures to obtain data samples, the present application can reduce the consumption of materials and improve the efficiency of image acquisition.
[0029] Exemplarily, such as Figure 1As shown in the figure, the data acquisition system includes an image generation device, a projection device, a photographing device, and a data processing device. The image generation device is used to generate a template image. Specifically, the image generation device is used to obtain target data, generate a barcode image that matches the target data; obtain the display information of the target object, process the barcode image based on the display information to obtain a target barcode image, and generate a template image including the target barcode image based on the target barcode image. Among them, the barcode image is used to be attached to the target object. The projection device is used to receive the template image sent by the image generation device and display the template image. The photographing device is used to photograph the template image displayed on the projection device from multiple angles, obtain a set of target images photographed at different angles, and send the set of target images to the data processing device. The data processing device is used to receive the set of target images sent by the photographing device and process the set of target images to obtain a target training set.
[0030] That is to say, after the image generation device generates the template image, it sends the template image to the projection device. After the projection device receives the template image, it projects the template image onto the target screen to display the template image. After the template image is displayed, the photographing device photographs the template image displayed on the target screen from different angles to obtain multiple target images photographed at different angles, that is, the set of target images. The photographing device can send the set of target images to the data processing device regularly or when the number of photographs reaches a preset value. After the data processing device receives the set of target images sent by the photographing device, it can process the set of target images. For example, correct barcode information is marked on the target images to obtain a target training set. The barcode information can include the position information of the barcode in the image, the size information of the barcode in the image, and the data information indicated by the barcode. The target training set includes each image and its matching barcode information.
[0031] It can be understood that when there are multiple barcode images corresponding to the target data, that is, there are also multiple corresponding template images, the obtained set of target images corresponds to multiple barcode images.
[0032] Optionally, in order to simulate various angles and distances at which users photograph barcodes in reality, the data acquisition system may further include a mobile device. The mobile device is used to move the photographing device. For example, the mobile device can be a robotic arm, and the robotic arm moves the photographing device according to a preset movement rule. The mobile device can also be a mobile track, for example. The photographing device is placed on the mobile track. The photographing device can move on the mobile track based on the received movement instruction. Optionally, the photographing device can also adjust the photographing parameters according to a preset photographing rule to photograph target images under different photographing parameters. The photographing parameters can include focal length, exposure parameters, etc. The mobile device can move horizontally and vertically facing the screen.
[0033] It can be understood that the image generation device and the data processing device can be integrated in the same device.
[0034] Exemplarily, the processor in the image generation device can perform the following steps: first obtain target data, generate a barcode image that matches the target data; obtain display information of the target object, and process the barcode image based on the display information to obtain a target barcode image; generate a template image including the target barcode image based on the target barcode image.
[0035] Among them, the barcode image is used to be attached to the target object. For example, the barcode image can be attached to the target object by pasting, printing, or printing.
[0036] The target data refers to the data indicated by the barcode. For example, the target data indicated by barcode A is 001. The barcode image refers to an image including the barcode. Optionally, the barcode image also includes a background. For example, the background of the barcode is solid color, or transparent, or has a patterned border. To obtain the barcode image, after the target data, a background image corresponding to the target object can be selected from a preset background image library first. The background image is merged with the barcode to obtain the barcode image. The display information of the target object can, for example, refer to the morphological characteristics of the target object. The morphological characteristics can include information such as the flatness, concavity and convexity, and texture of the object surface. The display information of the target object can also be a three-dimensional view of the target object.
[0037] After obtaining the display information of the target object, the image generation device processes the barcode image based on the display information to obtain a target barcode image. The target barcode image is an image obtained by performing processing corresponding to the display information of the target object on the barcode image. For example, based on the display information of the target object, it is determined that the surface of the target object is a plane. Since the barcode image itself visually appears as a planar image, there is no need to process the barcode image. Another example is that based on the display information of the target object, it is determined that the surface of the target object (such as a water bottle) is convex, so the barcode image needs to be visually concave-convex processed to obtain a target barcode image with a visual effect consistent with the surface of the target object.
[0038] After obtaining the target barcode image, the image generation device can generate a template image including the target barcode image based on the target barcode image. As Figure 2 shown, in addition to the target barcode image, the template image also includes a partial image of the target object. The partial image can be an image of a target area on the surface of the target object, and the target area is used to attach the barcode image. Optionally, generating a template image including the target barcode image based on the target image can include: obtaining a regional image corresponding to the target area in the target object; performing layer merging on the regional image and the target barcode image to obtain the template image.
[0039] The screen onto which the projection device projects the template image can be a liquid crystal display screen or an electronic ink display screen, depending on the type of the target object.
[0040] The data processing device processes the target image set to obtain the target training set, which may include: annotating each target image in the target image set to obtain marking information; obtaining the target training data corresponding to the target image based on the target image and the matching marking information, so as to obtain the target training set based on the target training data corresponding to each target image.
[0041] The template image is obtained by the image generation device in the above data acquisition system. After the projection device obtains the template image, the photographing device photographs the template image projected onto the screen to obtain the target image. In this way, the consumption of the target object can be reduced when collecting the training images related to the barcode. That is, there is no need to print the barcode on the target object and then directly photograph the target object, so that the consumption of the target object can be reduced. And by photographing the template image displayed on the target screen from multiple angles, the images obtained by photographing the barcode in various situations can be obtained, thereby improving the diversity of the target training set.
[0042] In some embodiments, since the barcode is generally attached to a specific area of the target object, the barcode image can be adjusted based on the display information of the specific area. In this way, the finally obtained target training set can be more real and effective, and processing the barcode image based on the display information of the specific area can also reduce the computational amount of the image generation device. Therefore, in terms of obtaining the target barcode image, the image generation device is further configured to obtain the surface image of the target object; determine the target area corresponding to the barcode image in the surface image; obtain the display information corresponding to the target area; and perform depth effect processing on the barcode image based on the display information to obtain the target barcode image.
[0043] Wherein, the surface image is an image obtained by photographing the surface of the target object at a preset angle. To reduce the loss of information, the preset angle can be the angle directly facing the target object. To obtain the depth information of the surface of the target object to obtain the surface flatness of the target object, a depth camera can be used to photograph the surface of the target object. If the display information is a three-dimensional view of the target object, the surface image of the target object can be obtained based on the positions of the points in the three-dimensional view.
[0044] After obtaining the surface image, the target area corresponding to the barcode image in the surface image can be determined. The target area is the area where the barcode image is attached to the surface of the target object. The display information corresponding to the target area can be the depth information of the target area. That is, the depth information of each pixel point in the target area. Then, based on the depth information of each pixel point, depth effect processing can be performed on each pixel point in the barcode image to obtain the target barcode image. The depth information of each pixel point in the target barcode image can be consistent with the depth information of the corresponding pixel point in the target area.
[0045] In some embodiments, the display information corresponding to the target area may further include the curvature information corresponding to the target area. Based on the curvature information corresponding to the target area, curvature adjustment is performed on the barcode image to obtain the target barcode image, so that the visual effect of the target barcode image is consistent with the visual effect of the target area.
[0046] To obtain the target barcode image, the image generation device can also be used to: determine the enhancement information corresponding to the corresponding pixel in the barcode image based on the pixel information of each pixel in the target area; adjust the pixel value of each pixel in the barcode image based on the enhancement information to generate the target barcode image.
[0047] Among them, the enhancement information may include brightness information or contrast information. The image generation device determines the brightness information or contrast information corresponding to the corresponding pixel in the barcode image based on the pixel information of each pixel in the target area. By changing the brightness information or contrast information of each pixel point in the barcode image, a target barcode image with the same unevenness as the target area is obtained.
[0048] After obtaining the target barcode image, the surface image of the target object can be merged with the target barcode image to simulate the image obtained by a user taking a picture of the barcode on the target object in reality. In this embodiment, the surface image of the target object includes the target area but the size is within a preset range.
[0049] In some embodiments, to obtain the barcode image, the image generation device is also used to: generate an initial barcode that matches the target data; obtain a background image from the background image set, and merge the initial barcode with the background image to obtain an initial image; obtain a set of scene parameters from a preset set of scene parameters; process the initial image based on each scene parameter in the set of scene parameters to obtain a plurality of the barcode images.
[0050] The target data can be pre-stored in a memory or a database. The image generation device reads the table storing the target data. An initial barcode that matches each data in the table is generated. In some cases, the color of the surface of the target object may cause the barcode attached to its surface to be blurred, resulting in the barcode being unrecognizable. Therefore, a background image can be configured for the barcode. Optionally, the background image is obtained from a set of background images, and the initial barcode is merged with the background image to obtain an initial image. It can be merging the layer of the initial barcode with the layer of the background image. In some embodiments, there may also be some elements at the edge of the background image, such as small elements like circles, flowers, etc. This can expand the final obtained target training set, enabling the model trained using this target training set to recognize more types of barcodes.
[0051] In some embodiments, the image generation device can also obtain scene parameters from a preset set of scene parameters; process the barcode image based on the scene parameters to obtain the processed barcode image. Then the processed barcode image is used to generate a target barcode image. Among them, the set of scene parameters can include lighting conditions. The lighting conditions can be a global lighting adjustment for the barcode image or a local lighting adjustment for the barcode image. After the lighting adjustment, the exposure levels of the individual pixel points in the processed barcode image may vary. In this way, by adjusting the scene where the barcode image is located, the diversity and richness of the training set are further expanded.
[0052] In some embodiments, to enable the imaging device to capture template images at different angles, the data acquisition system can include a mobile device for moving the imaging device. The mobile device can move the imaging device according to a preset movement rule. The mobile device can be, for example, a robotic arm, a moving track, etc. Among them, the preset movement rule includes multiple movement points; when the mobile device moves the imaging device to the movement point according to the preset movement rule, the imaging device receives a shooting instruction and responds to the shooting instruction to capture the template image displayed on the target screen.
[0053] That is to say, the preset movement rules may include movement rules at fixed points. For example, the shooting device stops moving at some fixed points. Or the moving speed is changed when approaching some fixed points. For example, the shooting device moves quickly or slowly. When the shooting device reaches or approaches a fixed point, the shooting device can shoot the template image displayed on the target screen according to the preset shooting frequency. The shooting frequency may also vary based on different types of fixed points. For example, the shooting frequency of the shooting device corresponding to the fixed point where movement needs to stop may be less than that of the shooting device corresponding to the fixed point where movement is required. For example, for fixed point A, the shooting device needs to stop moving at the fixed point for one second. Then when the shooting device reaches this fixed point, the shooting frequency can be 1 time per second. For fixed point B, the shooting device needs to reduce the moving speed when approaching this point. Then when the shooting device is at a preset distance from this fixed point, the shooting frequency of the shooting device can be changed from 10 times per second to 5 times per second. In this way, by moving the shooting device according to the preset movement rules, the shooting device can capture target images from multiple angles without manual participation, which can improve the rate of training image acquisition.
[0054] It can be understood that the preset movement rules are set artificially, and users can customize the preset movement rules according to their needs.
[0055] In some embodiments, to process the target image to obtain a target training set, after the data processing device receives the target image, for each target image in the target image set, the position information corresponding to the target barcode image in the target image and the target data corresponding to the target barcode image can be obtained; the target training set is generated based on the target image and the position information and the target data corresponding to the target image.
[0056] For a training image, both the image to be input into the model and the data that should be obtained after the model processes the image are required. Therefore, the target training set corresponding to a target image includes the target image and the annotation information corresponding to the target image. In this embodiment, the annotation information may include the position information of the barcode in the image and the target data corresponding to the barcode. Therefore, after the data processing device obtains the target image set, it can process each target image in the target image set to identify the position information of the target barcode image in the target image and the data represented by the barcode in the target image. Then, based on the target image and the corresponding position information and target data of the target image, the target training set corresponding to the target image is generated. In the target training set obtained in this way, for the barcode on a target object, there are images taken from multiple angles. In this way, the model obtained based on the target training set can accurately identify the barcodes taken from multiple angles, without the user having to align the camera directly with the barcode each time to identify the barcode.
[0057] In an exemplary embodiment, a data acquisition system is proposed. The data acquisition system includes an image generation device, a projection device, a photographing device, a mobile device, and a data processing device. Among them, the image generation device is used to obtain target data, generate a barcode image that matches the target data; obtain the display information of the target object, and process the barcode image based on the display information to obtain a target barcode image; generate a template image containing the target barcode image based on the target barcode image; the barcode image is used to be attached to the target object. The projection device is used to receive the template image sent by the image generation device and project the template image onto the target screen. The photographing device is used to take multi-angle photographs of the template image displayed on the target screen to obtain a target image set taken at different angles, and send the target image set to the data processing device. The mobile device is used to move the photographing device so that the photographing device can take pictures of the template image at different angles. The data processing device is used to receive the target image set sent by the photographing device and process the target image set to obtain a target training set.
[0058] As Figure 3As shown, the processor of the image generation device obtains target data, including obtaining target data from the original data content table. The original data content table stores a data list corresponding to barcodes. To obtain a barcode image, the image generation device can also, after generating an initial barcode that matches the target data, obtain a background image from the background image set, merge the initial barcode with the background image to obtain a barcode image. In addition to obtaining a background image from the background image set, the image generation device can also use a large model to generate a background image. The image generation device can store a text description that matches the target background image. When a background image needs to be generated, the text description is read and input into the large model, and the large model then generates a target background image that matches the text description based on the text description. Then, the target background image is merged with the initial barcode to obtain a barcode image. To make the barcode image closer to the image obtained by photographing a barcode in reality, the barcode image can be adjusted based on the morphological information of the target object, and then a template image is obtained using the adjusted target barcode image, that is Figure 3 the source image data in.
[0059] Then, the data acquisition system controls the projection device to project the source image onto the target screen (i.e., Figure 3 the material display board in). After the template image is projected onto the target screen, the data acquisition system can control the imaging device (i.e., the barcode scanner) to photograph the template image. Optionally, the data acquisition system can also include a light source controller, which is used to change the lighting conditions of the environment where the imaging device is located.
[0060] After that, the data acquisition system can obtain the images of the template image photographed by the imaging device under various lighting conditions, various shooting distances, and various shooting angles. Since the imaging device can move during the shooting process, images that do not contain the template image or only part of the template image may be photographed. For such images, they may need to be screened out. Therefore, the data processing device in the data acquisition system can screen the photographed images to obtain a final high-quality data set. The final data set is used to input into the model for training the model, and the trained model is packaged into a model file. Subsequently, the model file can be embedded into the target device (such as a barcode scanner) so that the target device can identify the data matched by the barcode in the photographed barcode image.
[0061] It can be understood that in the embodiments of the present application, when generating a barcode, the length of the data content, the barcode type, the material of the target object, the size of the barcode, etc. can be customized. The processing performed on the barcode image to obtain the target barcode image can also include interference characters, image segmentation, image rotation, etc. And the acquisition speed, angle, lighting conditions, etc. of the imaging device can also be customized.
[0062] Through the above steps, diverse data collection can be achieved, thereby improving the diversity and richness of the finally obtained dataset, and further facilitating the usability and application scope of the model. Moreover, since the dataset is obtained by photographing the template image, zero material consumption can be achieved.
[0063] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps in other steps.
[0064] The embodiment of the present application also provides an image generation method applied to the image generation device involved above. As Figure 4 shown, the method includes the following steps:
[0065] S402, obtain target data and generate a barcode image matching the target data.
[0066] S404, obtain the display information of the target object, and process the barcode image based on the display information to obtain a target barcode image.
[0067] S406, generate a template image including the target barcode image based on the target barcode image.
[0068] Among them, the barcode image is used to be attached to the target object.
[0069] In this embodiment, by processing the barcode image based on the display information of the target object to obtain a target barcode image, the flat state of the barcode image in reality can be simulated, thereby facilitating the authenticity of subsequent image acquisition.
[0070] Optionally, processing the barcode image based on the display information to obtain a target barcode image includes: obtaining the surface image of the target object; determining the target area corresponding to the barcode image in the surface image; obtaining the display information corresponding to the target area; and performing depth effect processing on the barcode image based on the display information to obtain the target barcode image.
[0071] Optionally, processing the barcode image based on the display information to obtain a target barcode image includes: determining enhancement information corresponding to a pixel in the barcode image based on the pixel information of each pixel in the target region; adjusting the pixel value of each pixel in the barcode image based on the enhancement information to generate the target barcode image.
[0072] For specific embodiments of the image generation method, reference may be made to the definition of the image generation device in the above data acquisition system, which will not be elaborated here.
[0073] In an exemplary embodiment, an image generation device applied to a data acquisition system is further provided, including a data module, a processing module, and a generation module. Among them:
[0074] The data module is configured to: obtain target data and generate a barcode image matching the target data.
[0075] The processing module is configured to obtain display information of a target object and process the barcode image based on the display information to obtain a target barcode image.
[0076] The generation module is configured to generate a template image including the target barcode image based on the target barcode image. Among them, the barcode image is used to be attached to the target object.
[0077] In some embodiments, the processing module is further configured to: obtain a surface image of the target object; determine a target region corresponding to the barcode image in the surface image; obtain display information corresponding to the target region; perform depth effect processing on the barcode image based on the display information to obtain the target barcode image.
[0078] In some embodiments, the processing module is further configured to: determine enhancement information corresponding to a pixel in the barcode image based on the pixel information of each pixel in the target region; adjust the pixel value of each pixel in the barcode image based on the enhancement information to generate the target barcode image. Each module in the above image generation device applied to a data acquisition system can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0079] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 5As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to generating template images. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements an image generation method.
[0080] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 6 shown in the figure. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC), or other technologies. When the computer program is executed by the processor, it implements an image generation method.
[0081] Those skilled in the art can understand that Figure 5 or Figure 6 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0082] In an exemplary embodiment, a computer device applied to a data acquisition system is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above image generation method are implemented.
[0083] In one embodiment, as Figure 7 shown, a computer-readable storage medium applied to a data acquisition system is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above image generation method are implemented.
[0084] In one embodiment, a computer program product applied to a data acquisition system is provided, including a computer program. When the computer program is executed by a processor, the steps in the above image generation method are implemented.
[0085] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0086] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope recorded in the present application.
[0087] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A data acquisition system, characterized in that, The system includes: An image generation device, configured to obtain target data, generate a barcode image matching the target data; obtain display information of a target object, process the barcode image based on the display information to obtain a target barcode image; generate a template image including the target barcode image based on the target barcode image; the barcode image is used to be attached to the target object; A projection device, configured to receive the template image sent by the image generation device and project the template image onto a target screen; A photographing device, configured to photograph the template image displayed on the target screen from multiple angles to obtain a set of target images photographed at different angles, and send the set of target images to a data processing device; A data processing device, configured to receive the set of target images sent by the photographing device and process the set of target images to obtain a target training set.
2. The system according to claim 1, characterized in that In terms of processing the barcode image based on the display information to obtain a target barcode image, the image generation device is further configured to: Obtain a surface image of the target object; Determine a target area corresponding to the barcode image in the surface image; Perform a depth effect process on the barcode image based on the display information corresponding to the target area to obtain the target barcode image.
3. The system according to claim 2, characterized in that, In terms of processing the barcode image based on the display information to obtain a target barcode image, the image generation device is further configured to: Determine enhancement information corresponding to a corresponding pixel in the barcode image based on pixel information of each pixel in the target area; Adjust pixel values of each pixel in the barcode image based on the enhancement information to generate the target barcode image.
4. The system according to claim 1, wherein In terms of obtaining target data and generating a barcode image matching the target data, the image generation device is further configured to: Generate an initial barcode matching the target data; Obtain a background image from a preset background image set, and merge the initial barcode with the background image to obtain the barcode image.
5. The system according to claim 1, characterized in that, The system further includes: A mobile device, configured to move the photographing device according to a preset movement rule; Wherein, the preset movement rule includes multiple movement points; when the mobile device moves the photographing device to the movement point according to the preset movement rule, the photographing device receives a photographing instruction and photographs the template image displayed on the target screen in response to the photographing instruction.
6. The system according to claim 1, characterized in that, In terms of processing the set of target images to obtain a target training set, the data processing device is further configured to: For each target image in the set of target images, obtain position information corresponding to the target barcode image in the target image, and the target data corresponding to the target barcode image; Generate the target training set based on the target image and the position information and the target data corresponding to the target image.
7. The system according to claim 1, characterized in that After obtaining the target training set, the data processing device is further configured to: Train an initial model based on the target training set to obtain a target model; Deploy the target model to the imaging device so that the imaging device can identify barcodes in the captured images and the target data corresponding to the barcodes.
8. An image generation method applied to a data acquisition system, characterized in that, The method includes: Obtain target data and generate a barcode image that matches the target data; Obtain the display information of the target object and process the barcode image based on the display information to obtain a target barcode image; Generate a template image including the target barcode image based on the target barcode image; the barcode image is used to be attached to the target object.
9. The method according to claim 8, wherein The processing the barcode image based on the display information to obtain a target barcode image includes: Obtain the surface image of the target object; Determine the target area corresponding to the barcode image in the surface image; Perform depth effect processing on the barcode image based on the display information corresponding to the target area to obtain the target barcode image.
10. The method according to claim 9, wherein The processing the barcode image based on the display information to obtain a target barcode image includes: Determine the enhancement information corresponding to the pixels in the barcode image based on the pixel information of each pixel in the target area; Adjust the pixel values of each pixel in the barcode image based on the enhancement information to generate the target barcode image.