A method for image processing based on rapid batch photography and printing.
Immediately after capturing images with a camera, the system performs sequence encoding and preset processing, detects anomalies in real time and interrupts processing, and prioritizes processing the next image. This solves the problem of time-consuming processing in batch photography and printing, achieving efficient image processing and printing synchronization, and improving device load balancing and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-04
- Publication Date
- 2026-04-03
Smart Images

Figure CN121255121B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing and intelligent device manufacturing technology, and in particular to an image processing method based on rapid batch photography and printing. Background Technology
[0002] In current industrial automated production lines, intelligent logistics sorting systems, and cloud-based personalized product manufacturing, it is often necessary to quickly acquire and process images of a large number of objects in real time, and distribute the processing results to designated graphic image output devices or mobile smart terminals for display and output. When taking batch photos of objects through electronic devices, and requiring that the photos be taken before printing, the images need to be processed before being sent to the printer to ensure that the image data meets the printer's printing standards. After processing, the image data is sent to the printer for printing.
[0003] In the process of batch image processing and printing, images are typically processed after each photo is taken, or batch processing is done only after all photos have been taken. Image processing is generally time-consuming, requiring users to wait for each photo to complete before starting the next photo, severely impacting user experience. Batch processing after all photos have been taken consumes significant resources such as CPU and memory. Furthermore, due to the large number of images, errors are prone to occur during batch processing, making it difficult to promptly address printing errors, affecting overall smoothness and reducing the efficiency of image processing and printing. Summary of the Invention
[0004] The purpose of this invention is to provide an image processing method based on rapid batch photography and printing, so as to solve the problems mentioned in the background art.
[0005] To achieve the above objectives, the present invention provides the following technical solution: an image processing method based on rapid batch photography and printing, comprising:
[0006] Includes the following steps:
[0007] Step S1: Create an image processing folder, set the processing folder as a monitoring folder in the image processing software, and preset the image processing actions to be executed in the image processing software;
[0008] Step S2: Connect the camera to the computer equipment, take pictures of the items transported by the production line and sorting system through the camera, encode the images according to the image capture information, the image number is n, and store the images in the image processing folder in step S1.
[0009] Step S3: Based on the image sequence number encoding in step S2, use image processing software to perform preset processing actions on the nth image, and wait for the nth image to be processed.
[0010] Step S4: Detect image processing errors, send the image processing error information to the computer device, interrupt the processing of the current image, and execute the processing job for the next image.
[0011] Step S5: After the nth image is processed, send the image data to the printing device for graphic image output, and at the same time execute the processing action of the (n+1)th image, and wait for the nth image data to be sent.
[0012] Step S6: If the image data transmission fails, retransmit the image data. If the transmission still fails, interrupt the transmission of the image data and execute the transmission action of the next image data.
[0013] Step S7: When the (n+1)th image data is in the sending state, repeat step S5, wait for the (n+1)th image data to be sent successfully, and then send the (n+2)th image data to the printing device for graphic image output.
[0014] Preferably, the execution of the image preset processing action in step S1 includes the following steps:
[0015] Step S11: Create an image processing folder on the computer device to store the images captured by the camera, and set the image processing folder as the monitoring folder in Lightroom and Photoshop image processing software;
[0016] Step S12: By pre-setting the image processing actions to be performed in the image processing software, the image is processed according to the user's requirements to form image data that meets the requirements of the printing equipment operation for graphic image output;
[0017] Step S13: When the captured image is stored in the image processing folder established in step S11, the image processing software detects the image storage information, captures the image, performs preset processing actions, and saves it after processing is completed.
[0018] Preferably, the image processing performed in step S1 includes:
[0019] The preset color saturation of the image is used to adjust the color and brightness of the image to be processed.
[0020] Set automatic cropping and straightening data to correct the edges of the image to be processed;
[0021] Set image printing parameters to process the print size and layout of the image to be processed;
[0022] The preset image data protocol converts the data of the image to be processed into a digital protocol that is compatible with the printer's printing protocol.
[0023] Preferably, the image sequence number encoding in step S2 includes the following steps:
[0024] Step S21: Store the image capture time in EXIF metadata;
[0025] Step S22: When reading data from the image processing folder in step S1, obtain the original shooting time from the EXIF data of the image;
[0026] Step S23: Generate a sequence number based on the shooting time of the image, and rename all images by combining the shooting time and the sequence number.
[0027] Preferably, the image processing in step S3 includes the following steps:
[0028] Step S31: By reading the serial number element in the image name, the images in the image processing folder of Step S1 are captured in the order of serial number;
[0029] Step S32: Perform preset image processing on the first column numbered image, wait for the processing of the first column numbered image to be completed, and process the corresponding images in sequence according to the numbered elements.
[0030] Preferably, the image processing anomaly detection in step S4 includes the following steps:
[0031] Step S41: Size and resolution detection, check the consistency of the width, height and DPI of the processed image with the preset values;
[0032] Step S42: File size detection, checking whether the size of the processed image file is consistent with the specified range;
[0033] Step S43: Background consistency verification. Check the color value of the sampled background area of the photo after background removal and replacement, and determine its similarity to the target color value.
[0034] Step S44: Manual preview. Preview images are generated from the abnormal images detected in steps S41-S43, and then manually checked and confirmed.
[0035] Preferably, the image data transmission detection in step S6 includes the following steps:
[0036] Step S51: Based on the image sequence number information in step S3, the processed image data is sequentially sent to the printing device for graphic image output, and the sending result of the image data is detected by computer equipment.
[0037] Step S52: Set the number of times the same sequence number of image data is sent to be a. If the number of times a is less than 2, continue to send the image data to the printing device for graphic image output.
[0038] Step S53: When the number of transmissions a=2, it is determined that the image data transmission has failed, the transmission of the image data is interrupted, the transmission of the next sequence number of image data is executed, and the abnormal data of the sequence number of image is sent to the computer device.
[0039] Preferably, the image data transmission and image processing in step S7 includes the following steps:
[0040] Step S71: Based on the image sequence number information in step S3, when the processed data of the nth image is in the sending state, execute the processing action of the (n+1)th image;
[0041] Step S72: After the (n+1)th image is processed, if the data of the nth image is still in the sending state, then the processing action of the (n+2)th image is executed.
[0042] Step S73: After the nth image data is successfully sent, execute the action of sending the (n+1)th image data. After the (n+1)th image data is successfully sent, execute the action of sending the (n+2)th image data.
[0043] Preferably, the image renaming step S23, which combines the shooting time and sequence number, includes the following steps:
[0044] Step S231: Open the image processing folder created in step S1 using Adobe Bridge software, select all images, and perform batch renaming.
[0045] Step S232: Set renaming rules. Select the original date and time and sequence number data as the new file name for the image. Set the starting value and number of digits of the sequence number to form a new file name with the shooting time and sequence number data.
[0046] Preferably, the method for handling image data transmission failure in step S53 includes the following steps:
[0047] Step S531: By issuing an alarm in the computer device display unit and detecting the connection status between the computer device and the printing device for graphic image output, it is determined that the transmission failure is caused by a connection abnormality.
[0048] Step S532: After determining that the connection between the computer device and the printing device for graphic image output is normal, the processed image data is tested to determine the consistency between the image data and the printer's printing protocol.
[0049] Preferably, the image processing preset execution in step S1 is achieved by setting the color saturation, cropping and straightening data, printing parameters, and image printing data protocol of the image to be processed in Lightroom or Photoshop image processing software. When the image processing software captures an image in the image processing folder, it adjusts the color saturation, cropping and straightening data, and printing parameters of the image according to the preset parameters, and performs unified processing on the parameters and printing data protocol of the image to be processed.
[0050] Preferably, in step S11, the image processing folder is set as the monitoring folder. The Python script software is selected based on the computer device's operating system and requirements, and the correct path to the monitoring folder is set in conjunction with the database. The Python script file is run in the test environment to confirm the running logic.
[0051] The technical effects and advantages of this invention are as follows:
[0052] This invention captures images of items on a production line using a camera, then sends the image data to a printing device for graphic image output. During the image data transmission process, image processing is performed in real time. By processing the data for the next image while the current image is being sent to the printer, the efficiency of capturing, processing, and printing is improved, and the equipment load is balanced. Furthermore, by encoding the images to be processed according to their capture time, a logical and less prone-to-confusion sorting is generated. Images are processed sequentially based on their sequence numbers. The time sorting, sequence number encoding, ordered processing, and data transmission are linked to achieve ordered processing and data transmission of batch images. This facilitates log recording and troubleshooting, improving the efficiency and orderliness of batch image processing. Attached Figure Description
[0053] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention, but do not constitute a limitation thereof. In the drawings:
[0054] Figure 1 This is a schematic diagram of the image processing method of the present invention;
[0055] Figure 2 This is a schematic diagram of the image preset processing action execution flow of the present invention;
[0056] Figure 3 This is a schematic diagram of the image serial number encoding process of the present invention;
[0057] Figure 4 This is a schematic diagram of the image data transmission and detection process of the present invention;
[0058] Figure 5This is a schematic diagram of the image data transmission and image processing flow of the present invention. Detailed Implementation
[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0060] This invention provides, for example Figures 1-5 The image processing method shown includes the following steps: (This section describes a method for rapid batch photography and printing.)
[0061] Step S1: Create an image processing folder, set the processing folder as a monitoring folder in the image processing software, and preset the image processing actions to be executed in the image processing software;
[0062] Step S2: Connect the camera to the computer equipment, take pictures of the items conveyed by the production line and sorting system through the camera, obtain the picture information of the produced items, encode the sequence number according to the picture information, the picture number is n, and store the picture in the picture processing folder in step S1.
[0063] Step S3: Based on the image sequence number encoding in step S2, use image processing software to perform preset processing actions on the nth image, and wait for the nth image to be processed.
[0064] Step S4: Detect image processing errors, send the image processing error information to the computer device, interrupt the processing of the current image, and execute the processing job for the next image.
[0065] Step S5: After the nth image is processed, send the image data to the printing device for graphic image output, and at the same time execute the processing action of the (n+1)th image, and wait for the nth image data to be sent.
[0066] Step S6: If the image data transmission fails, retransmit the image data. If the transmission still fails, interrupt the transmission of the image data and execute the transmission action of the next image data.
[0067] Step S7: When the (n+1)th image data is in the sending state, repeat step S5, wait for the (n+1)th image data to be sent successfully, and then send the (n+2)th image data to the printing device for graphic image output.
[0068] The execution of the image preset processing action in step S1 includes the following steps:
[0069] Step S11: Create an image processing folder on the computer device to store the images captured by the camera, and set the image processing folder as the monitoring folder in Lightroom and Photoshop image processing software;
[0070] Step S12: By pre-setting the image processing actions to be performed in the image processing software, the image is processed according to the user's requirements to form image data that meets the requirements of the printing equipment operation for graphic image output;
[0071] Step S13: When the captured image is stored in the image processing folder established in step S11, the image processing software detects the image storage information, captures the image, performs preset processing actions, and saves it after processing is completed.
[0072] The process involves capturing images of items on the production line using a camera, storing the images on a computer, processing them, and then sending the image data to a printing device for graphic image output. During image processing, the computer automatically detects new images added by placing them in a designated folder. The software then automatically performs a series of processing actions on the new images according to preset rules. After processing, the software sends the image data to the printing device for printing. This automated image processing ensures that each photo undergoes identical processing. Lightroom is a graphics tool software focused on post-production, used for extensive image post-processing, including color correction and retouching. Photoshop primarily processes digital images composed of pixels. Its numerous editing and drawing tools allow for effective image editing, including image processing, design and layout, 3D, and compositing functions.
[0073] The image processing performed in step S1 includes:
[0074] The preset color saturation of the image is used to adjust the color and brightness of the image to be processed.
[0075] Set automatic cropping and straightening data to correct the edges of the image to be processed;
[0076] Set image printing parameters to process the print size and layout of the image to be processed;
[0077] The preset image data protocol converts the data of the image to be processed into a digital protocol that is compatible with the printer's printing protocol.
[0078] Image data protocol conversion includes image preprocessing, raster image processing, and data protocol encapsulation. Image preprocessing adjusts the resolution to the printer's native resolution and crops or scales the image to the precise physical size of the final output. Raster image processing converts the preprocessed image into line-by-line commands that the printer can understand, decomposes the continuous-tone image into tiny dots, and mixes various colors in the human eye by controlling the size, density, and combination of these dots. The image is then transformed into a binary mask for each color channel. Data protocol encapsulation packages the binary dot matrix data according to a protocol understood by the printer. What is sent to the printer is a binary data stream composed of these commands and the original dot matrix data.
[0079] The image sequence number encoding in step S2 includes the following steps:
[0080] Step S21: Store the image capture time in EXIF metadata;
[0081] Step S22: When reading data from the image processing folder in step S1, obtain the original shooting time from the EXIF data of the image;
[0082] Step S23: Generate a sequence number based on the shooting time of the image, and rename all images by combining the shooting time and the sequence number.
[0083] EXIF, often referred to as the Exchangeable Image File Format, is a standard for understanding and processing digital photographs. It specifies how to embed another data area—EXIF metadata—within an existing image file. EXIF information is diverse, typically including shooting parameters, date and time, geolocation information, image attributes, and thumbnails. Shooting parameters include camera model, lens information, exposure information, and focal length. The date and time show the exact date and time the photo was taken, down to the second. Geolocation information displays the precise geographical coordinates and altitude of the shooting location. Image attributes include pixel width, height, and resolution. Furthermore, EXIF data blocks contain... Typically, it includes an embedded thumbnail for quick previews in file managers, photo albums, etc., without needing to decode the entire large image. The EXIF data of images can be used to automatically organize and filter massive amounts of photos based on EXIF information such as shooting date and camera model. Furthermore, if images with abnormal file sizes are found, the cause can be determined by combining EXIF data. In the image processing workflow, if EXIF data is accidentally stripped or corrupted, it can itself serve as a monitoring item. While EXIF metadata cannot directly determine content during image content analysis and review, abnormal EXIF combinations may be associated with certain specific scenarios, providing auxiliary clues for content review.
[0084] Step S23, renaming the images based on the shooting time and sequence number, includes the following steps:
[0085] Step S231: Open the image processing folder created in step S1 using Adobe Bridge software, select all images, and perform batch renaming.
[0086] Step S232: Set renaming rules. Select the original date and time and sequence number data as the new file name for the image. Set the starting value and number of digits of the sequence number to form a new file name with the shooting time and sequence number data.
[0087] By renaming images in the image processing folder, the image names are set to a new format based on the shooting time and sequence number. Images are processed in chronological order, and the filenames themselves contain all the key information, eliminating the need for complex parsing logic. By reading the EXIF data, the precise shooting time is extracted from each image, formatted into a standard string, and appended with a sequence number to process multiple images taken within the same second. The renaming operation is performed securely, and the sequence number element in the filename is easily read, facilitating the sequential processing and sending of image data according to the image shooting time.
[0088] In step S2, the computer device and the graphics and image output printing device are connected via wired network, USB, and Wi-Fi. The graphics and image output printing device is connected to a local area network router or switch via a network cable. The computer device discovers and communicates with it within the same local area network via IP address and directly connects to the graphics and image output printing device via a USB data cable. Simultaneously, the graphics and image output printing device is connected to a wireless router via a wireless network card, and the computer device communicates with it within the same Wi-Fi network. This achieves a connection method that combines wired network, USB, and Wi-Fi, ensuring stable data transmission between the computer device and the graphics and image output printing device.
[0089] By encoding images to be processed according to their shooting time, the most logical and least chaotic sorting is generated, making it suitable for processing photos aggregated from multiple devices. Images are processed sequentially according to their sequence number encoding. Time sorting, sequence encoding, ordered processing, and data transmission are linked, and the correlation between sequence number and time facilitates logging and troubleshooting. This enables the ordered processing and data transmission of batch images. Adobe Bridge is used to organize, browse, and find required resources. It can view, search, sort, manage, and process various types of files. It can also create new folders, rename, move, and delete files, edit metadata, rotate images, run batch processing commands, and view information about files and data imported from digital cameras.
[0090] The image processing in step S3 includes the following steps:
[0091] Step S31: By reading the serial number element in the image name, the images in the image processing folder of Step S1 are captured in the order of serial number;
[0092] Step S32: Perform preset image processing on the first column numbered image, wait for the processing of the first column numbered image to be completed, and process the corresponding images in sequence according to the numbered elements.
[0093] This scripting technique in Python uses regular expressions to directly search for and capture all numeric sequences in filenames. It uses underscores or hyphens in regular expressions to match one or more numbers, taking the first found sequence number as the index. Furthermore, based on the shooting time and specific renaming patterns for the sequence number, it defines more precise regular expressions to match only numbers enclosed in underscores or hyphens, with the number length being the required one-character length. It uses parentheses to capture numeric information, extracting the content captured within the first set of parentheses, thus completing the reading of the sequence number element from the image filename.
[0094] Step S4, image processing anomaly detection, includes the following steps:
[0095] Step S41: Size and resolution detection, check the consistency of the width, height and DPI of the processed image with the preset values;
[0096] Step S42: File size detection, checking whether the size of the processed image file is consistent with the specified range;
[0097] Step S43: Background consistency verification. Check the color value of the sampled background area of the photo after background removal and replacement, and determine its similarity to the target color value.
[0098] Step S44: Manual preview. Preview images are generated from the abnormal images detected in steps S41-S43, and then manually checked and confirmed.
[0099] This system uses computer vision technology to detect the processing results of images. It automatically learns and extracts hierarchical features from image data using a Convolutional Neural Network (CNN), detecting color, brightness, edges, corners, and texture features. The extracted features are then used for judgment and prediction to ensure image processing quality, standardize image data format, and facilitate sending image data to printing devices for graphic image output. Abnormal images are then manually reviewed and handled promptly to ensure smooth batch image processing and printing. The CNN uses a small weight matrix as the convolution kernel, which slides across the input image from left to right and top to bottom. At each position, a dot product operation is performed, where the kernel's weights are multiplied by the pixel values of the local image region it covers, and the sum is used to produce a numerical output. After the kernel has slid across the entire image, a new two-dimensional array is generated, which is the feature map. The image's DPI (Density Per Pixel) is the print size instruction, determining the pixel distribution density on the paper.
[0100] Step S6, image data transmission detection, includes the following steps:
[0101] Step S51: Based on the image sequence number information in step S3, the processed image data is sequentially sent to the printing device for graphic image output, and the sending result of the image data is detected by computer equipment.
[0102] Step S52: Set the number of times the same sequence number of image data is sent to be a. If the number of times a is less than 2, continue to send the image data to the printing device for graphic image output.
[0103] Step S53: When the number of transmissions a=2, it is determined that the image data transmission has failed, the transmission of the image data is interrupted, the transmission of the next sequence number of image data is executed, and the abnormal data of the sequence number of image is sent to the computer device.
[0104] Before the image data is sent for the first time, the sending count is 0. If the sending count is less than 2, the image data is sent. If the image data is not sent successfully at this time, it needs to be sent again, and the sending count is 1. If the sending count is less than 2, the image data is sent again. If this sending fails, the image data sending count equals 2, the image data is considered to have failed, and the sending of this image data is skipped. At the same time, the abnormal image data sending signal is transmitted to the computer device as an alarm. By making multiple attempts to send the image data, abnormal data is accurately monitored. By monitoring the image data sending results in real time, abnormal image data sending can be detected in a timely manner, and the abnormal data sending stage can be skipped to send subsequent image data, ensuring the smoothness of the image processing and sending process and improving the efficiency of batch image processing and sending.
[0105] Step S7, image data transmission and image processing, includes the following steps:
[0106] Step S71: Based on the image sequence number information in step S3, when the processed data of the nth image is in the sending state, execute the processing action of the (n+1)th image;
[0107] Step S72: After the (n+1)th image is processed, if the data of the nth image is still in the sending state, then the processing action of the (n+2)th image is executed.
[0108] Step S73: After the nth image data is successfully sent, execute the action of sending the (n+1)th image data. After the (n+1)th image data is successfully sent, execute the action of sending the (n+2)th image data.
[0109] Image processing takes priority over image data transmission. Based on the image sequence number, image processing is performed first. Image processing is performed in real time during image data transmission. By processing the data of the next image while the image data is being sent to the printer, image data transmission and data processing are synchronized, improving the efficiency of taking pictures, image processing and printing, and achieving load balancing of the device.
[0110] The method for handling image data transmission failure in step S53 includes the following steps:
[0111] Step S531: By issuing an alarm in the computer device display unit and detecting the connection status between the computer device and the printing device for graphic image output, it is determined that the transmission failure is caused by a connection abnormality.
[0112] Step S532: After determining that the connection between the computer device and the printing device for graphic image output is normal, the processed image data is tested to determine the consistency between the image data and the printer's printing protocol.
[0113] In step S1, the image processing presets are executed by setting the color saturation, cropping and straightening data, printing parameters, and image printing data protocol of the images to be processed in Lightroom and Photoshop image processing software. When the image processing software captures images in the image processing folder, it adjusts the color saturation, cropping and straightening data, and printing parameters of the images according to the preset parameters. The parameters and printing data protocol of the images to be processed are unified, and the color saturation, cropping and straightening data, and printing parameters of the images are adjusted to meet printing standards. At the same time, the image data protocol is adjusted to meet the printer protocol, realizing the same processing and printing of batch images, automating image processing, and improving the efficiency of processing a large number of images.
[0114] In step S11, the image processing folder is set as the monitoring folder. The Python scripting software is selected based on the computer's operating system and requirements, and the correct monitoring folder path is set in conjunction with the database. The Python script file is run in the test environment to verify the execution logic. Python is an interpreted, object-oriented, dynamically typed high-level programming language with data analysis, scientific computing, automation, and scripting capabilities. It is used to write automated scripts, process files, execute system tasks, and automate tests. By using Python scripting, the image processing folder path is set as the running target of the image processing software, making the image processing folder a monitoring folder for the image processing software. When the Python script program captures image information in the image processing folder, the image processing software is run to perform preset processing on the image.
[0115] The principle of this invention is as follows: Images of items on the production line are captured by a camera, and the image data is then sent to a printing device for graphic image output. The images to be processed are sequentially numbered according to the capture time, generating the most logical and least prone-to-confusion sorting. Images are processed sequentially based on their sequence numbers. The time sorting, sequence numbering, ordered processing, and data transmission are linked to achieve orderly processing and data transmission of batch images, facilitating log recording and troubleshooting. Simultaneously, image processing is prioritized based on the image sequence information. Image processing is performed in real-time during image data transmission, allowing the processing of the next image's data within the time frame between image data transmission and printing, thus improving the efficiency of capturing, processing, and printing, and achieving equipment load balancing.
[0116] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. An image processing method based on rapid batch photography and printing, characterized in that, Includes the following steps: Step S1: Create an image processing folder, set the processing folder as a monitoring folder in the image processing software, and preset the image processing actions to be executed in the image processing software; Step S2: Connect the camera to the computer equipment, take pictures of the items transported by the production line and sorting system through the camera, encode the sequence number according to the picture information, associate the sorting time, the code number, the data processing and the data transmission, log the recording and troubleshooting, the picture number is n, and the picture is stored in the picture processing folder in step S1. Step S3: Based on the image sequence number encoding in step S2, use image processing software to perform preset processing actions on the nth image, and wait for the nth image to be processed. Step S4: Detect image processing errors, send the image processing error information to the computer device, interrupt the processing of the current image, and execute the processing job for the next image. Step S5: After the nth image is processed, send the image data to the printing device for graphic image output, and at the same time execute the processing action of the (n+1)th image, and wait for the nth image data to be sent. Step S6: If the image data transmission fails, retransmit the image data. If the transmission still fails, interrupt the transmission of the image data, monitor the abnormal data transmission, skip the abnormal data transmission stage, and execute the transmission action of the next image data. Step S7: When the (n+1)th image data is in the sending state, repeat step S5, wait for the (n+1)th image data to be sent successfully, and then send the (n+2)th image data to the printing device for graphic image output.
2. The image processing method based on rapid batch photography and printing according to claim 1, characterized in that, The image processing action in step S1 includes the following steps: Step S11: Create an image processing folder on the computer device to store the images captured by the camera, and set the image processing folder as the monitoring folder in Lightroom and Photoshop image processing software; Step S12: By pre-setting the image processing actions to be performed in the image processing software, the image is processed according to the user's requirements to form image data that meets the requirements of the graphic image output printing device. Step S13: When the captured image is stored in the image processing folder established in step S11, the image processing software detects the image storage information, captures the image, performs preset processing actions, and saves it after processing is completed.
3. The image processing method based on rapid batch photography and printing according to claim 2, characterized in that, The image processing actions preset to be performed in step S1 include: The preset color saturation of the image is used to adjust the color and brightness of the image to be processed. Set automatic cropping and straightening data to correct the edges of the image to be processed; Set image printing parameters to process the print size and layout of the image to be processed; The preset image data protocol converts the data of the image to be processed into a digital protocol that is compatible with the printer's printing protocol.
4. The image processing method based on rapid batch photography and printing according to claim 3, characterized in that, The image sequence number encoding in step S2 includes the following steps: Step S21: Store the image capture time in EXIF metadata; Step S22: When reading data from the image processing folder in step S1, obtain the original shooting time from the EXIF data of the image; Step S23: Generate a sequence number based on the shooting time of the image, and rename all images by combining the shooting time and the sequence number.
5. The image processing method based on rapid batch photography and printing according to claim 4, characterized in that, The image processing action in step S3 includes the following steps: Step S31: By reading the serial number element in the image name, the images in the image processing folder of Step S1 are captured in the order of the serial number; Step S32: Perform preset image processing on the first column numbered image, wait for the processing of the first column numbered image to be completed, and process the corresponding images in sequence according to the numbered elements.
6. The image processing method based on rapid batch photography and printing according to claim 5, characterized in that, The image processing anomaly detection in step S4 includes the following steps: Step S41: Size and resolution detection, check the consistency of the width, height and DPI of the processed image with the preset values; Step S42: File size detection, checking whether the size of the processed image file is consistent with the specified range; Step S43: Background consistency verification. Check the color value of the sampled background area of the photo after background removal and replacement, and determine its similarity to the target color value. Step S44: Manual preview. Preview images are generated from the abnormal images detected in steps S41-S43, and then manually checked and confirmed.
7. The image processing method based on rapid batch photography and printing according to claim 6, characterized in that, The image data transmission detection in step S6 includes the following steps: Step S51: Based on the image sequence number information in step S3, the processed image data is sequentially sent to the printing device for graphic image output, and the sending result of the image data is detected by computer equipment. Step S52: Set the number of times the same sequence number of image data is sent to be a. If the number of times a is less than 2, continue to send the image data to the printing device for graphic image output. Step S53: When the number of transmissions a=2, it is determined that the image data transmission has failed, the transmission of the image data is interrupted, the transmission of the next sequence number of image data is executed, and the sequence number of the failed image and the abnormal data are sent to the computer device.
8. The image processing method based on rapid batch photography and printing according to claim 7, characterized in that, The image data transmission and image processing in step S7 includes the following steps: Step S71: Based on the image sequence number information in step S3, when the processed data of the nth image is in the sending state, execute the processing action of the (n+1)th image; Step S72: After the (n+1)th image is processed, if the data of the nth image is still in the sending state, then the processing action of the (n+2)th image is executed. Step S73: After the nth image data is successfully sent, execute the action of sending the (n+1)th image data. After the (n+1)th image data is successfully sent, execute the action of sending the (n+2)th image data.
9. The image processing method based on rapid batch photography and printing according to claim 4, characterized in that, The renaming of the images in step S23, which combines the shooting time and sequence number, includes the following steps: Step S231: Open the image processing folder created in step S1 using Adobe Bridge software, select all images, and perform batch renaming. Step S232: Set renaming rules. Select the original date and time and sequence number data as the new file name for the image. Set the starting value and number of digits of the sequence number to form a new file name with the shooting time and sequence number data.
10. The image processing method based on rapid batch photography and printing according to claim 7, characterized in that, The method for handling image data transmission failure in step S53 includes the following steps: Step S531: By issuing an alarm in the computer device display unit and detecting the connection status between the computer device and the printing device for graphic image output, it is determined that the transmission failure is caused by a connection abnormality. Step S532: After determining that the connection between the computer device and the printing device for graphic image output is normal, the processed image data is tested to determine the consistency between the image data and the printer's printing protocol.
11. The image processing method based on rapid batch photography and printing according to claim 10, characterized in that, The execution of the image processing preset in step S1 is achieved by setting the color saturation, cropping and straightening data, printing parameters and image printing data protocol of the image to be processed in Lightroom and Photoshop image processing software. When the image processing software captures an image in the image processing folder, it adjusts the color saturation, cropping and straightening data and printing parameters of the image according to the preset parameters, and performs unified processing on the parameters and printing data protocol of the image to be processed.
12. The image processing method based on rapid batch photography and printing according to claim 11, characterized in that, In step S11, the image processing folder is set as the monitoring folder. The Python script software is selected based on the computer device's operating system and requirements. The correct path to the monitoring folder is set in conjunction with the database. The Python script file is run in the test environment to confirm the running logic.
Citation Information
Patent Citations
Picture renaming method and picture renaming device
CN104657495A
Image network printing method and device, equipment and storage medium
CN115686387A