CN111654646B - Image synthesis method, device, system and storage medium - Google Patents

Image synthesis method, device, system and storage medium Download PDF

Info

Publication number
CN111654646B
CN111654646B CN202010520070.5A CN202010520070A CN111654646B CN 111654646 B CN111654646 B CN 111654646B CN 202010520070 A CN202010520070 A CN 202010520070A CN 111654646 B CN111654646 B CN 111654646B
Authority
CN
China
Prior art keywords
image
file information
sub
eye
machines
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010520070.5A
Other languages
Chinese (zh)
Other versions
CN111654646A (en
Inventor
徐健祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Hirose Opto Co Ltd
Original Assignee
Suzhou Hirose Opto Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Hirose Opto Co Ltd filed Critical Suzhou Hirose Opto Co Ltd
Priority to CN202010520070.5A priority Critical patent/CN111654646B/en
Publication of CN111654646A publication Critical patent/CN111654646A/en
Application granted granted Critical
Publication of CN111654646B publication Critical patent/CN111654646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2624Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects for obtaining an image which is composed of whole input images, e.g. splitscreen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses an image synthesis method, an image synthesis device, an image synthesis system and a storage medium. When receiving an image display request, the method determines first file information of each eye image, synthesizes image segments in each sub-machine according to the first file information, determines second file information of the image segments in each sub-machine, and generates a target synthesized image according to the second file information. Because the images of each eye are stored by a plurality of sub-machines, the stored images can be prevented from being incomplete. By inquiring the file information twice and generating the target synthetic image, the complete target synthetic image can be obtained, the image synthetic efficiency is improved, and the accurate analysis of the target synthetic image is facilitated.

Description

Image synthesis method, device, system and storage medium
Technical Field
The present invention relates to image processing technologies, and in particular, to a method, apparatus, system, and storage medium for image synthesis.
Background
In recent years, in the AOI (Automated Optical Inspection, automatic optical inspection) industry, CCDs (Chagre CoulP Deoveices, solid state cameras) are widely used in fields such as photoelectric scanning, space remote sensing, astronomical star tracking, and the like. The information acquired by the CCD has valuable research value. Therefore, it is very important to effectively store and synthesize the CCD image for target detection and recognition.
At present, after the CCD camera collects images, the images are generally directly stored in the memory card, but the sizes of many CCD images are too large, the memory card can not store the CCD images completely, and when the stored CCD images are synthesized, the synthesized CCD image information is incomplete due to the incomplete stored CCD images, so that images are generated for subsequent target detection and target identification.
Therefore, the prior art cannot generate a complete CCD synthetic image, and influences the subsequent analysis such as target detection and identification of the CCD image.
Disclosure of Invention
The embodiment of the invention provides an image synthesis method, an image synthesis device, an image synthesis system and a storage medium, which are used for generating a complete CCD synthesized image so as to be convenient for accurately analyzing the CCD image.
In a first aspect, an embodiment of the present invention provides an image synthesis method, including:
receiving an image display request, and determining whether a plurality of sub-machines exist first file information of each eye image corresponding to an image to be checked, wherein the sub-machines are used for storing the segmented each eye image;
if the first file information of each eye image exists in each sub-machine, respectively merging each eye image in each sub-machine according to the first file information to obtain an image fragment in each sub-machine;
and if the second file information of the image fragments exists in each sub-machine, synthesizing the image fragments of each sub-machine according to the second file information to obtain a target synthesized image.
In a second aspect, an embodiment of the present invention further provides an image synthesis apparatus, including:
the file information determining module is used for receiving the image display request, determining whether a plurality of sub-machines exist file information of each eye image corresponding to the image to be checked, wherein the sub-machines are used for storing the segmented image, and the sub-machines are used for storing the segmented image;
the image segment generation module is used for respectively combining the eye images in the sub-machines according to the first file information if the first file information of the eye images exists in the sub-machines, so as to obtain image segments in the sub-machines;
and the target synthetic image generation module is used for synthesizing the image fragments of each sub-machine according to the second file information if the second file information of the image fragments exists in each sub-machine, so as to obtain a target synthetic image.
In a third aspect, an embodiment of the present invention further provides an image synthesis system, including an image synthesis device, a sub-machine, and an image acquisition device, where the image synthesis device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the image synthesis method according to any one of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions which, when executed by a computer processor, implement the image synthesis method of any one of the first aspects.
According to the technical scheme provided by the embodiment, the divided eye images are stored in the plurality of sub-machines, when an image display request is received, first file information of the eye images is determined, image fragments in the sub-machines are synthesized according to the first file information, second file information of the image fragments in the sub-machines is determined, and a target synthesized image is generated according to the second file information. Because the images of each eye are stored by a plurality of sub-machines, the stored images can be prevented from being incomplete. By inquiring the file information twice and generating the target synthetic image, the complete target synthetic image can be obtained, the image synthetic efficiency is improved, and the accurate analysis of the target synthetic image is facilitated.
Drawings
FIG. 1 is a flow chart of an image synthesizing method according to an embodiment of the invention;
FIG. 2a is a schematic diagram of a first-view image according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of another eye image according to an embodiment of the present invention;
FIG. 2c is a schematic diagram of an image segment according to a first embodiment of the present invention;
FIG. 2d is a schematic diagram of another image segment according to an embodiment of the present invention;
FIG. 2e is a schematic diagram of an initial composite image of a slave unit according to an embodiment of the present invention;
FIG. 2f is a schematic diagram of an initial composite image of all sub-machines according to a first embodiment of the present invention;
FIG. 2g is a schematic diagram of a target composite image of all sub-machines according to a first embodiment of the present invention;
FIG. 3 is a flow chart of a method for synthesizing images according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image synthesizing device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image synthesizing system according to a fourth embodiment of the present invention
Fig. 6 is a schematic structural diagram of an image synthesizing apparatus according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flow chart of an image synthesizing method according to an embodiment of the present invention, which is applicable to synthesizing each eye image stored in a plurality of sub-machines twice to obtain a target synthesized image when receiving an image display request. Referring specifically to fig. 1, the method may include the steps of:
s110, receiving an image display request, and determining whether a plurality of sub-machines have first file information of each eye image corresponding to the image to be checked.
The image display request may include identification information of an image to be checked, and the image to be checked is called according to the identification information of the image to be checked, where the image to be checked may be an astronomical star image, a photoelectric scanning image, and the like, which are shot by a CCD camera.
It will be appreciated that, before receiving the image display request, the image data captured by the CCD camera may be stored, and specifically, the image data may be divided into images of each eye having a smaller height or width, and each eye image may be stored in a plurality of sub-machines. Wherein the sub-machine may be a server or a computer device. Optionally, the first file information is used to distinguish between different eye images, and may include first identification information of each eye image, a first storage location, third size data, and a pixel value, where the third size data may be a height or a width of each eye image.
S120, if the first file information of each eye image exists in each sub-machine, combining the eye images in each sub-machine according to the first file information to obtain image fragments in each sub-machine.
In order to improve the image query efficiency and the image synthesis effect, the images of the eyes can be synthesized into image fragments, and then the image fragments are synthesized into the target image, and the two steps can be executed in parallel. Optionally, the step of generating the image segment includes: searching first file information of each eye image, and if the first file information of each eye image exists in each sub-machine, determining each eye image to be synthesized according to the first file information; and extracting first pixel data of the images of the eyes to be synthesized, and synthesizing the images of the eyes in each sub-machine according to the first pixel data, the third size data of the images of the eyes to be synthesized and the corresponding splicing position of the images of the eyes to be synthesized to obtain image fragments in each sub-machine.
Specifically, by reading the first file information to determine each eye image to be synthesized, if each sub-camera has the first file information of each eye image, it is explained that each eye image after segmentation corresponding to the image display request is stored in the sub-camera in advance, each eye image to be synthesized can be determined according to the first file information, the pixel value (i.e. the first pixel data) of each eye image to be synthesized is read, for example, the pixel value of the edge pixel point of each eye image to be synthesized is read, the size data of each eye image to be synthesized is determined, for example, the height or width of each eye image to be synthesized is determined, and the splicing position of each eye image to be synthesized is determined, wherein the splicing position comprises the upper, lower, left, right, upper left, lower left, upper right, and lower right positions, and the like, each eye image is synthesized according to the information, and an image fragment with larger size data is obtained for synthesizing the image fragment into the target synthesized image. It should be noted that, the process of synthesizing the images of each eye according to the first file information may be performed in parallel, so that the efficiency of synthesizing the image segments may be improved.
S130, if the second file information of the image segments exists in each sub-machine, synthesizing the image segments of each sub-machine according to the second file information to obtain a target synthesized image.
The second file information is used for distinguishing different image segments, and may include second identification information, a second storage position and second size data of the image segments, where the second size data may be a height or a width of the image segments.
Optionally, the step of generating the target composite image includes: determining image fragments to be synthesized in each sub-machine according to the second file information; and extracting second pixel data of the image fragments to be synthesized, and synthesizing all the image fragments of the sub-machine according to the second pixel data, the second size data of the image fragments to be synthesized and the splicing positions corresponding to the image fragments to be synthesized to obtain the target synthesized image.
Specifically, as described in the foregoing steps, the image segments to be synthesized are determined by reading the second file information, if the second file information exists in each sub-machine, it is explained that the sub-machine stores the segmented image segments corresponding to the image display request in advance, the image segments to be synthesized may be determined according to the second file information, the pixel values (i.e., the second pixel data) of the image segments to be synthesized are read, for example, the pixel values of the edge pixel points of the image segments to be synthesized are read, the size data of the image segments to be synthesized are determined, for example, the height or width of the image segments to be synthesized is determined, and the splicing positions of the image segments to be synthesized are determined, where the splicing positions include the upper, lower, left, right, upper left, lower left, upper right, and lower right, etc., and the image segments to be synthesized are determined according to the above information, so as to obtain the target synthesized image. It should be noted that the process of synthesizing the image segments according to the second file information may be performed in parallel, so that the synthesizing efficiency of the target synthesized image may be improved.
As shown in fig. 2a-2g, fig. 2a and 2b are schematic diagrams of a single-view image, fig. 2c and 2d are image segments, the image segments shown in fig. 2c are obtained by combining fig. 2a and 2b, the initial composite image of one sub-machine shown in fig. 2e is obtained by combining the image segments shown in fig. 2c and 2d, and then the target composite image shown in fig. 2g is obtained by combining the initial composite images of all the sub-machines shown in fig. 2 f. It can be understood that in the process of determining the target composite image, the embodiment synthesizes the eye images stored in each sub-camera into the image segments, synthesizes the image segments in each sub-camera into the target composite image, synthesizes the eye images into the image segments, and synthesizes the image segments in each sub-camera into the target composite image, which can be executed in parallel, and, when synthesizing the image segments, can simultaneously generate the target composite image, thereby improving the synthesis efficiency. In addition, in the synthesis process, whether the first file information and the second file information exist or not is determined, so that divided images of all eyes corresponding to the image display request can be obtained, and omission of image information is avoided.
According to the technical scheme provided by the embodiment, the divided eye images are stored in the plurality of sub-machines, when an image display request is received, first file information of the eye images is determined, image fragments in the sub-machines are synthesized according to the first file information, second file information of the image fragments in the sub-machines is determined, and a target synthesized image is generated according to the second file information. Because the images of each eye are stored by a plurality of sub-machines, the stored images can be prevented from being incomplete. By inquiring the file information twice and generating the target synthetic image, the complete target synthetic image can be obtained, the image synthetic efficiency is improved, and the accurate analysis of the target synthetic image is facilitated.
Example two
Fig. 3 is a flow chart of an image synthesizing method according to a second embodiment of the invention. The technical scheme of the embodiment adds new steps on the basis of the embodiment. Optionally, before the receiving the image display request, the method further includes: receiving an image to be stored sent by image acquisition equipment, dividing the image to be stored according to first size data of the image to be stored, and generating the image fragment and second file information corresponding to the image fragment; and performing secondary segmentation on the image fragment according to second size data of the image fragment to obtain first file information of each eye image and each eye image, and storing each eye image and the first file information into a plurality of sub-machines, wherein the first file information comprises first identification information, a first storage position, third size data and pixel values of each eye image, and the second file information comprises second identification information, a second storage position and second size data of each image fragment. For parts which are not described in detail in this method embodiment, reference is made to the above-described embodiments. Referring specifically to fig. 3, the method may include the steps of:
s210, receiving an image to be stored sent by the image acquisition equipment, and dividing the image to be stored according to first size data of the image to be stored to generate an image fragment and second file information corresponding to the image fragment.
The second file information includes second identification information, a second storage location and second size data of the image segment.
Alternatively, the image capturing device may be a solid-state camera (i.e. a CCD camera), and the first size data of the image to be stored is height data or width data of the image to be stored. It can be understood that if the first size data of the image to be stored is too large, one sub-machine cannot store all the information of the image to be stored, the image to be stored can be divided into a plurality of image segments according to the first size data, the second file information of all the image judgment can be determined, and the plurality of image segments and the corresponding second file information are stored in the plurality of sub-machines, so that all the information of the image to be stored is ensured to be stored.
S220, performing secondary segmentation on the image segments according to the second size data of the image segments to obtain each eye image and first file information of each eye image, and storing each eye image and the first file information into a plurality of sub-machines correspondingly.
The first file information includes first identification information, a first storage location, third size data and pixel values of the eye images. It should be noted that, for the image fragment that has the second size data larger and is stored in one slave unit, the reading efficiency of the image fragment is low when the target composite image is generated. In order to improve the generation efficiency of the target synthesized image and store the detail information of the image to be stored, the embodiment can divide the image segment twice according to the second size data of the image segment to obtain each eye image and determine the first file information of each eye image, and store each eye image and the first file information into a plurality of sub-machines correspondingly. Therefore, the image to be stored with the excessively high height or the excessively wide width can be divided into the images with the smaller height or the smaller width, and the images of the eyes are stored in the plurality of sub-machines, so that the complete information of the image to be stored can be stored, the query efficiency of the image information can be improved when the target composite image is generated, and the composite efficiency is further improved.
S230, receiving the image display request, and determining whether the plurality of sub-machines have first file information of each eye image corresponding to the image to be checked.
S240, if the first file information of each eye image exists in each sub-machine, combining the eye images in each sub-machine according to the first file information to obtain image fragments in each sub-machine.
S250, if the second file information of the image fragments exists in each sub-machine, synthesizing the image fragments of each sub-machine according to the second file information to obtain a target synthesized image.
It will be appreciated that the target composite image may be reduced or enlarged after it is obtained. Specifically, by receiving an output ratio request of the target synthesized image, the target synthesized image is output and displayed according to the output ratio request and the size ratio corresponding to the output ratio request. Wherein the output ratio request may be any externally determined integer.
The foregoing steps describe the case where the first file information of each eye image and the second file information of each image segment exist. If the first file information of at least one image is not present, or if the second file information of at least one image segment is not present, it is indicated that the image stored in the sub-machine may not include all the information of the image corresponding to the image display request, that is, the generated target composite image may have a broken image condition.
In order to avoid the situation of broken drawings, this embodiment further includes: if the first file information of at least one eye image does not exist, searching the first file information of each eye image in all the sub-machines again in the set time until the first file information of all the eye images in all the sub-machines is searched; or if the second file information of at least one image segment does not exist, searching the second file information of each image segment in all the sub-machines again in the set time until the second file information of all the image segments in all the sub-machines is searched. The above steps are to search the first file information or the second file information by polling waiting until all the first file information or all the second file information is searched, and then the target synthesized image is regenerated, so that the problem of image breakage caused by the lack of an eye image or an image fragment can be solved.
According to the technical scheme provided by the embodiment, the image to be stored sent by the image acquisition equipment is received, the image to be stored is segmented according to the first size data of the image to be stored, the image segments and the second file information corresponding to the image segments are generated, the image segments are segmented for the second time according to the second size data of the image segments, the eye images and the first file information of the eye images are obtained, and the eye images and the first file information are stored in a plurality of sub-machines in a corresponding mode. The method can divide the image to be stored with too high height or too wide width into the images with smaller height or width, store the images into a plurality of sub-machines, not only can save the complete information of the image to be stored, but also can improve the query efficiency of the image information when generating the target synthetic image, and further improve the synthetic efficiency. In addition, the first file information or the second file information is searched in a polling waiting mode until all the first file information or all the second file information is searched, and a target synthetic image is regenerated, so that the problem of image breakage caused by the lack of a certain eye image or a certain image fragment can be solved
Example III
Fig. 4 is a schematic structural diagram of an image synthesizing apparatus according to a third embodiment of the present invention. Referring to fig. 4, the apparatus includes: the archive information determination module 310, the image segment generation module 320, and the target composite image generation module 330.
The archive information determining module 310 is configured to receive an image display request, determine whether a plurality of sub-machines have archive information of each eye image corresponding to an image to be checked, where the sub-machines are configured to store the segmented image, and store the segmented image;
the image segment generating module 320 is configured to, if the first file information of the images of each eye exists in each sub-machine, respectively combine the images of each eye in each sub-machine according to the first file information, so as to obtain an image segment in each sub-machine;
and the target synthetic image generating module 330 is configured to, if the second file information of the image segments exists in each of the sub-machines, synthesize the image segments of each of the sub-machines according to the second file information, and obtain a target synthetic image.
On the basis of the technical schemes, the device further comprises: a storage module; the storage module is used for receiving an image to be stored sent by the image acquisition equipment, dividing the image to be stored according to first size data of the image to be stored, and generating the image fragment and second file information corresponding to the image fragment;
and performing secondary segmentation on the image fragment according to second size data of the image fragment to obtain first file information of each eye image and each eye image, and storing each eye image and the first file information into a plurality of sub-machines, wherein the first file information comprises first identification information, a first storage position, third size data and pixel values of each eye image, and the second file information comprises second identification information, a second storage position and second size data of each image fragment.
On the basis of the above technical solutions, the image segment generating module 320 is further configured to determine that each eye image is to be synthesized according to the first file information;
and extracting first pixel data of the images of the eyes to be synthesized, and synthesizing the images of the eyes in each sub-machine according to the first pixel data, the third size data of the images of the eyes to be synthesized and the corresponding splicing position of the images of the eyes to be synthesized to obtain image fragments in each sub-machine.
On the basis of the above technical solutions, the target synthetic image generating module 330 is further configured to determine an image segment to be synthesized in each of the sub-machines according to the second file information;
and extracting second pixel data of the image fragments to be synthesized, and synthesizing all the image fragments of the sub-machine according to the second pixel data, the second size data of the image fragments to be synthesized and the splicing positions corresponding to the image fragments to be synthesized to obtain the target synthesized image.
On the basis of the technical schemes, the device further comprises: an output module; the output module is used for receiving an output proportion request of the target synthesized image, outputting and displaying the target synthesized image according to the size proportion corresponding to the output proportion request according to the output proportion request.
On the basis of the technical schemes, the device further comprises: a searching module; the searching module is used for searching the first file information of each eye image in all the sub-machines again within a set time if the first file information of at least one eye image does not exist, until the first file information of all the eye images in all the sub-machines is searched;
or if the second file information of at least one image segment does not exist, searching the second file information of each image segment in all the sub-machines again in the set time until the second file information of all the image segments in all the sub-machines is searched.
On the basis of the above technical solutions, the image capturing device is a solid-state camera, and the first size data of the image to be stored is height data or width data of the image to be stored.
According to the technical scheme provided by the embodiment, the divided eye images are stored in the plurality of sub-machines, when an image display request is received, first file information of the eye images is determined, image fragments in the sub-machines are synthesized according to the first file information, second file information of the image fragments in the sub-machines is determined, and a target synthesized image is generated according to the second file information. Because the images of each eye are stored by a plurality of sub-machines, the stored images can be prevented from being incomplete. The target synthetic image is obtained through the two synthetic processes, so that a complete target synthetic image can be obtained, the image synthetic efficiency is improved, and further, the target synthetic image can be accurately analyzed.
Example IV
Fig. 5 is a schematic structural diagram of an image synthesizing system according to a fourth embodiment of the present invention. The image synthesis system comprises an image synthesis device 1, a sub-machine 2 and an image acquisition device 3. Fig. 6 shows a block diagram of an exemplary image composing device 1 suitable for implementing embodiments of the present invention. The image composing apparatus 1 shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the image synthesizing apparatus 1 is in the form of a general-purpose computing apparatus. The components of the image synthesizing apparatus 1 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The image composing device 1 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by image composing device 1 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The image composing device 1 may further comprise other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The memory 28 may include at least one program product having a set of program modules (e.g., an archive information determination module 310, an image fragment generation module 320, and a target composite image generation module 330 of an image compositing apparatus) configured to perform the functions of embodiments of the invention.
The program/utility 44 having a set of program modules 46 (e.g., archive information determination module 310, image segment generation module 320, and target composite image generation module 330) of the image compositing apparatus may be stored, for example, in memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 46 generally perform the functions and/or methods of the embodiments described herein.
The image composing device 1 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the image composing device 1, and/or with any device (e.g., network card, modem, etc.) that enables the image composing device 1 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the image composing device 1 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the internet through the network adapter 20. As shown, the network adapter 20 communicates with other modules of the image synthesizing apparatus 1 via the bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the image compositing device 1, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, for example, to implement an image synthesizing method according to an embodiment of the present invention, the method includes:
receiving an image display request, and determining whether a plurality of sub-machines exist first file information of each eye image corresponding to an image to be checked, wherein the sub-machines are used for storing the segmented each eye image;
if the first file information of each eye image exists in each sub-machine, respectively merging each eye image in each sub-machine according to the first file information to obtain an image fragment in each sub-machine;
and if the second file information of the image fragments exists in each sub-machine, synthesizing the image fragments of each sub-machine according to the second file information to obtain a target synthesized image.
The processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, for example, to implement an image synthesizing method according to an embodiment of the present invention.
Of course, it will be understood by those skilled in the art that the processor may also implement the technical scheme of the image synthesizing method provided by any embodiment of the present invention.
Example five
The fifth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, the program when executed by a processor implementing an image synthesizing method according to the fifth embodiment of the present invention, the method comprising:
receiving an image display request, and determining whether a plurality of sub-machines exist first file information of each eye image corresponding to an image to be checked, wherein the sub-machines are used for storing the segmented each eye image;
if the first file information of each eye image exists in each sub-machine, respectively merging each eye image in each sub-machine according to the first file information to obtain an image fragment in each sub-machine;
and if the second file information of the image fragments exists in each sub-machine, synthesizing the image fragments of each sub-machine according to the second file information to obtain a target synthesized image.
Of course, the computer readable storage medium according to the embodiment of the present invention is not limited to the above method operations, and may also perform the related operations in the image synthesizing method according to any embodiment of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
The computer readable signal medium may include first file information, second file information, image segments, etc., in which computer readable program code is carried. Such propagated first file information, second file information, video clips, etc. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the image synthesizing apparatus, each module included is only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. An image synthesizing method, comprising:
receiving an image to be stored sent by image acquisition equipment, dividing the image to be stored according to first size data of the image to be stored, and generating an image fragment and second file information corresponding to the image fragment; the second file information comprises second identification information, a second storage position and second size data of the image fragment;
performing secondary segmentation on the image fragment according to the second size data of the image fragment to obtain each eye image and first file information of each eye image, and storing each eye image and the first file information into a plurality of sub-machines correspondingly; the first file information comprises first identification information, a first storage position, third size data and pixel values of the eye images;
receiving an image display request, and determining whether a plurality of sub-machines exist first file information of each eye image corresponding to an image to be displayed, wherein the sub-machines are used for storing the segmented each eye image;
if the first file information of each eye image exists in each sub-machine, respectively merging each eye image in each sub-machine according to the first file information to obtain an image fragment in each sub-machine;
if the second file information of the image segments exists in each sub-machine, synthesizing the image segments of each sub-machine according to the second file information to obtain a target synthesized image;
the image synthesis method further comprises the following steps:
if the first file information of at least one eye image does not exist, searching the first file information of each eye image in all the sub-machines again in the set time until the first file information of all the eye images in all the sub-machines is searched;
or if the second file information of at least one image segment does not exist, searching the second file information of each image segment in all the sub-machines again in the set time until the second file information of all the image segments in all the sub-machines is searched.
2. The method of claim 1, wherein the merging each eye image in each of the sub-machines according to the first file information to obtain an image segment in each of the sub-machines includes:
determining images to be synthesized of each eye according to the first file information;
and extracting first pixel data of each eye image to be synthesized, and synthesizing each eye image in each sub-machine according to the first pixel data, the third size data of each eye image to be synthesized and the corresponding splicing position of each eye image to be synthesized to obtain an image segment in each sub-machine.
3. The method of claim 1, wherein the synthesizing the image segments of each of the sub-machines according to the second file information comprises:
determining image fragments to be synthesized in each sub-machine according to the second file information;
and extracting second pixel data of the image fragments to be synthesized, and synthesizing all the image fragments of the sub-machine according to the second pixel data, the second size data of the image fragments to be synthesized and the splicing positions corresponding to the image fragments to be synthesized to obtain the target synthesized image.
4. The method as recited in claim 1, further comprising:
and receiving an output proportion request of the target synthesized image, outputting and displaying the target synthesized image according to the output proportion request and the size proportion corresponding to the output proportion request.
5. The method of claim 1, wherein the image capturing device is a solid-state camera, and the first size data of the image to be stored is height data or width data of the image to be stored.
6. An image synthesizing apparatus, comprising:
the storage module is used for receiving the image to be stored sent by the image acquisition equipment, dividing the image to be stored according to the first size data of the image to be stored, and generating an image fragment and second file information corresponding to the image fragment; performing secondary segmentation on the image fragment according to the second size data of the image fragment to obtain each eye image and first file information of each eye image, and storing each eye image and the first file information into a plurality of sub-machines correspondingly;
the file information determining module is used for receiving the image display request, determining whether a plurality of sub-machines exist file information of each eye image corresponding to the image to be checked, wherein the sub-machines are used for storing the segmented image;
the image segment generation module is used for respectively combining the eye images in the sub-machines according to the first file information if the first file information of the eye images exists in the sub-machines, so as to obtain image segments in the sub-machines;
the target synthetic image generation module is used for synthesizing the image fragments of each sub-machine according to the second file information if the second file information of the image fragments exists in each sub-machine, so as to obtain target synthetic images;
wherein the apparatus further comprises: a searching module;
the searching module is used for searching the first file information of each eye image in all the sub-machines again in a set time if the first file information of at least one eye image does not exist, until the first file information of all the eye images in all the sub-machines is searched; the first file information comprises first identification information, a first storage position, third size data and pixel values of the eye images;
or if the second file information of at least one image fragment does not exist, searching the second file information of each image fragment in all the sub-machines again in the set time until the second file information of all the image fragments in all the sub-machines is searched; the second file information includes second identification information, a second storage location and second size data of the image segment.
7. An image composition system comprising an image composition device, a sub-machine and an image acquisition device, said image composition device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the image composition method according to any one of claims 1-5 when executing said computer program.
8. A storage medium containing computer executable instructions which, when executed by a computer processor, implement the image compositing method of any of claims 1-5.
CN202010520070.5A 2020-06-09 2020-06-09 Image synthesis method, device, system and storage medium Active CN111654646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010520070.5A CN111654646B (en) 2020-06-09 2020-06-09 Image synthesis method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010520070.5A CN111654646B (en) 2020-06-09 2020-06-09 Image synthesis method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN111654646A CN111654646A (en) 2020-09-11
CN111654646B true CN111654646B (en) 2023-06-13

Family

ID=72345704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010520070.5A Active CN111654646B (en) 2020-06-09 2020-06-09 Image synthesis method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN111654646B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530381B (en) * 2013-10-17 2016-08-17 宁波工程学院 A kind of parallel optimization method towards remote sensing image neighborhood processing
CN106503093B (en) * 2016-10-13 2019-06-11 华东师范大学 A kind of large-scale remote sensing image reconstructing method suitable for distributed computing environment
CN109299060A (en) * 2018-11-22 2019-02-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Distributed file method and system based on image rectangular blocks

Also Published As

Publication number Publication date
CN111654646A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN110705405B (en) Target labeling method and device
JP2018063236A (en) Method and apparatus for annotating point cloud data
CN109727275B (en) Object detection method, device, system and computer readable storage medium
CN111222509B (en) Target detection method and device and electronic equipment
CN110660102B (en) Speaker recognition method, device and system based on artificial intelligence
CN111209431A (en) Video searching method, device, equipment and medium
CN110390295B (en) Image information identification method and device and storage medium
CN112149583A (en) Smoke detection method, terminal device and storage medium
CN111753766B (en) Image processing method, device, equipment and medium
CN111812545A (en) Line defect detection method, device, equipment and medium
CN108229281B (en) Neural network generation method, face detection device and electronic equipment
CN113255516A (en) Living body detection method and device and electronic equipment
CN109300322B (en) Guideline drawing method, apparatus, device, and medium
CN114299366A (en) Image detection method and device, electronic equipment and storage medium
CN109086097B (en) Method and device for starting small program, server and storage medium
CN114359160A (en) Screen detection method and device, electronic equipment and storage medium
CN110619597A (en) Semitransparent watermark removing method and device, electronic equipment and storage medium
CN111654646B (en) Image synthesis method, device, system and storage medium
CN114267076B (en) Image identification method, device, equipment and storage medium
US20220084314A1 (en) Method for obtaining multi-dimensional information by picture-based integration and related device
CN113194279B (en) Recording method of network conference, computer readable storage medium and electronic device
CN113762017B (en) Action recognition method, device, equipment and storage medium
CN111124862B (en) Intelligent device performance testing method and device and intelligent device
CN112380938B (en) Face recognition and temperature measurement method, device, equipment and medium
CN114067145A (en) Passive optical splitter detection method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant