CN-122019814-A - Image batch processing method, electronic device, and computer-readable storage medium
Abstract
The application discloses an image batch processing method, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of obtaining a plurality of original images; screening at least one original image meeting the hardware processing requirement from a plurality of original images to be used as a first image, taking the rest original images in the plurality of original images as second images, carrying out batch processing on each first image by utilizing hardware, and carrying out batch processing on each second image by utilizing software. Through the mode, the image batch processing method and device can improve the efficiency of image batch processing.
Inventors
- CHEN XIAOBIAO
- LI HEQING
- SUN QIUCHEN
- LIN WEIJIE
Assignees
- 浙江大华技术股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251210
Claims (11)
- 1. A method for batch processing of images, the method comprising: Acquiring a plurality of original images; Screening at least one original image meeting the hardware processing requirement from the plurality of original images to be used as a first image, and taking the rest original images in the plurality of original images as second images; Performing batch processing on each first image by using hardware; And performing batch processing on each second image by using software.
- 2. The method according to claim 1, wherein the screening at least one original image meeting hardware processing requirements from the plurality of original images as a first image includes: For each original image, judging whether the original image meets the hardware processing requirement or not by utilizing original image description information and destination image description information of the original image, wherein the original image description information is used for describing the original image, and the destination image description information is used for describing a destination image obtained after the original image is processed; and responding to the original image meeting the hardware processing requirement, and taking the original image as the first image.
- 3. The method of claim 2, wherein the step of determining the position of the substrate comprises, The original image description information includes at least one of first description information about the original image, second description information about an effective area in the original image, the first description information including at least one of color space, width, height, span, address alignment, address range, the second description information including at least one of width, height; The destination image descriptive information includes at least one of third descriptive information about the destination image including at least one of color space, width, height, span, address alignment, address range, fourth descriptive information about an active area in the destination image including at least one of width, height.
- 4. The method of claim 1, wherein prior to the batch processing of each of the first images with hardware or prior to the batch processing of each of the second images with software, the method further comprises: Forming a plurality of initial information groups by using the description information of each original image, wherein the description information of each original image comprises original image description information and destination image description information of the original image, the original image description information comprises first description information about the original image and second description information about an effective area in the original image, the destination image description information comprises third description information about a destination image obtained after processing the original image and fourth description information about an effective area in the destination image, one initial information group comprises one description information which is the same as that of each original image, and the position arrangement sequence of different description information of one original image in each initial information group is consistent; And carrying out information recombination on each initial information group to obtain target information groups corresponding to each initial information group, wherein in the target information groups, the positions of the description information of each original image conforming to the hardware processing requirements are continuously arranged, and/or the positions of the description information of each original image not conforming to the hardware processing requirements are continuously arranged, and the position arrangement sequence of different description information corresponding to one original image in the corresponding target information groups is consistent.
- 5. The method of claim 4, wherein the step of performing information reorganization on each of the initial information sets to obtain a target information set corresponding to each of the initial information sets includes: The position sequence of the description information corresponding to each original image meeting the hardware processing requirements in the initial information set is used as a first index value of the description information corresponding to each original image meeting the hardware processing requirements, and the first index value is utilized to form a first index set; And taking the position sequence of the description information corresponding to the original images which do not meet the hardware processing requirements in the initial information group as second index values of the description information corresponding to the original images which do not meet the hardware processing requirements, and forming a second index group by utilizing the second index values; And carrying out information recombination on each initial information group by using the first index group and the second index group to obtain target information groups corresponding to each initial information group, wherein in the target information groups, the positions of the descriptive information corresponding to the first index group are continuously arranged, and/or the positions of the descriptive information corresponding to the second index group are continuously arranged.
- 6. The method of claim 5, wherein the initial information sets are stored in corresponding first memories, and wherein the performing information reorganization on each initial information set by using the first index set and the second index set to obtain target information sets corresponding to each initial information set includes: For each initial information group, taking an index group as a target index group, and extracting description information corresponding to each index value in the target index group from the initial information group to serve as target description information; Storing the target description information into a second memory; And taking the other index group as the new target index value, and re-executing the description information corresponding to each index value in the target index group and the subsequent steps from the initial information group, wherein the target description information stored in the second memory each time is spliced into the target information group corresponding to the initial information group.
- 7. The method of claim 6, wherein the step of providing the first layer comprises, And in the target information group, the position sequence of the target description information corresponding to the first index group is positioned before the position sequence of the target description information corresponding to the second index group.
- 8. The method according to claim 4, wherein the method further comprises: and executing the information recombination of the initial information groups to obtain target information groups corresponding to the initial information groups and subsequent steps of the target information groups corresponding to the initial information groups in response to the existence of the original image meeting the hardware processing requirements and the existence of the original image not meeting the hardware processing requirements.
- 9. The method of claim 4, wherein the batch processing of each of the first images with hardware or the batch processing of each of the second images with software comprises: The method comprises the steps of sending a storage address and a target number of each target information group to an image processing part, enabling the image processing part to acquire each target image based on each target information group and the target number and conduct batch processing, wherein the target number comprises the number of target images when description information of the target images is located in front of the target information group and description information of other images is located in back of the target information group, and the target number comprises the number of target images and the number of other images when the description information of the other images is located in front of the target information group and the description information of the target images is located in back of the target information group, and the image processing part is the hardware, the target images are first images, the other images are second images, or the image processing part is the software, the target images are second images, and the other images are first images.
- 10. An electronic device comprising a memory for storing program instructions and a processor for executing the program instructions to implement the image batch processing method of any one of claims 1-9.
- 11. A computer readable storage medium, characterized in that the computer readable storage medium is for storing program instructions, the program instructions being executable to implement the image batch processing method of any one of claims 1-9.
Description
Image batch processing method, electronic device, and computer-readable storage medium Technical Field The present application relates to the field of image processing technologies, and in particular, to an image batch processing method, an electronic device, and a computer readable storage medium. Background In image batch processing, in consideration of processing performance problems, it is generally preferable to perform image batch processing with hardware. In the actual image batch processing process, some unsupported characteristics can be encountered to cause hardware processing failure, if a certain image in the middle is failed in hardware processing, the batch of images need to be completely returned and subjected to image batch processing by using software, so that although the correct result of the image batch processing can be finally obtained, some hardware computing resources are wasted, and the performance and the efficiency of the image batch processing are reduced. Disclosure of Invention The application mainly solves the technical problem of providing an image batch processing method, electronic equipment and a computer readable storage medium, which can improve the efficiency of image batch processing. In order to solve the technical problems, the first aspect of the application provides an image batch processing method, which comprises the steps of obtaining a plurality of original images, screening at least one original image meeting hardware processing requirements from the plurality of original images to serve as a first image, taking the rest original images in the plurality of original images as second images, carrying out batch processing on the first images by utilizing hardware, and carrying out batch processing on the second images by utilizing software. The method comprises the steps of screening at least one original image meeting hardware processing requirements from a plurality of original images to serve as a first image, judging whether the original images meet the hardware processing requirements or not by utilizing original image description information and target image description information of the original images, wherein the original image description information is used for describing the original images, the target image description information is used for describing target images obtained after the original images are processed, and responding to the fact that the original images meet the hardware processing requirements, and taking the original images as the first image. The original image description information comprises at least one of first description information about an original image and second description information about an effective area in the original image, wherein the first description information comprises at least one of color space, width, height, span, address alignment and address range, the second description information comprises at least one of width and height, the destination image description information comprises at least one of third description information about a destination image and fourth description information about an effective area in the destination image, the third description information comprises at least one of color space, width, height, span, address alignment and address range, and the fourth description information comprises at least one of width and height. The method for processing the first images in batches by utilizing hardware or before processing the second images in batches by utilizing software further comprises the steps of utilizing the description information of each original image to form a plurality of initial information groups, wherein the description information of each original image comprises original image description information and target image description information of each original image, the original image description information comprises first description information related to the original image and second description information related to an effective area in the original image, the target image description information comprises third description information related to the target image obtained after processing the original image and fourth description information related to the effective area in the target image, one initial information group comprises one description information identical to each original image, the position arrangement sequence of different description information of one original image in each initial information group is consistent, the information recombination is carried out on each initial information group to obtain target information groups corresponding to each initial information group, and the positions of the description information of each original image meeting hardware processing requirements are continuously arranged in the target information groups, and/or the positions of the description information of each original image not meeting hardware proces