CN112131640A - SVG-based panoramic image drawing method and device, computer equipment and storage medium - Google Patents

SVG-based panoramic image drawing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112131640A
CN112131640A CN202010963138.7A CN202010963138A CN112131640A CN 112131640 A CN112131640 A CN 112131640A CN 202010963138 A CN202010963138 A CN 202010963138A CN 112131640 A CN112131640 A CN 112131640A
Authority
CN
China
Prior art keywords
data
panoramic image
image
target
panoramic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010963138.7A
Other languages
Chinese (zh)
Inventor
尹元昌
黄凯文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mobile Internet Research Institute Co ltd
Original Assignee
Shenzhen Mobile Internet Research Institute 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 Shenzhen Mobile Internet Research Institute Co ltd filed Critical Shenzhen Mobile Internet Research Institute Co ltd
Priority to CN202010963138.7A priority Critical patent/CN112131640A/en
Publication of CN112131640A publication Critical patent/CN112131640A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Multimedia (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application belongs to the technical field of artificial intelligence, and relates to a SVG-based panoramic image drawing method, a device, computer equipment and a storage medium, which comprises the following steps: acquiring image data of a target scene based on spherical camera equipment; constructing an initial panoramic image corresponding to the target scene based on the image data; receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data; embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image; adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image; and outputting the target panoramic image to the user terminal. The user can quickly finish the production of the plane schematic diagrams of the real scenes of various types of fields, and can further refine and optimize according to the requirement of the fine degree of the user, thereby greatly reducing the workload of the user.

Description

SVG-based panoramic image drawing method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a panoramic image drawing method, a panoramic image drawing device, panoramic image drawing equipment and a storage medium based on SVG.
Background
At present, the related technologies based on the plan drawing are all focused on the design ideas before the engineering, such as the engineering, the civil engineering, the interior decoration design and the like, in the building field.
The existing plan drawing is designed with more components, then buildings with scenes are built according to various plan drawings and the like, and application scenes for drawing the plan drawing of the scene by combining building structures and position relations in reality rarely occur. And many times, due to time alternation and subjective requirement modification, many original plan plans cannot accurately describe the structure of the existing scene, so that the plan combining the latest version of the real scene is urgently needed.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, equipment and a storage medium for drawing a panoramic image based on SVG. The method aims to solve the problem that the existing plane graph manufacturing method cannot be combined with the actual building structure and position relation.
In order to solve the above technical problem, an embodiment of the present application provides a SVG-based panoramic image drawing method, which adopts the following technical solutions:
acquiring image data of a target scene based on spherical camera equipment;
constructing an initial panoramic image corresponding to the target scene based on the image data;
receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data;
embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image;
adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image;
and outputting the target panoramic image to the user terminal.
In order to solve the above technical problem, an embodiment of the present application further provides a SVG-based panoramic image drawing device, which adopts the following technical scheme:
the image data acquisition module is used for acquiring image data of a target scene based on the spherical camera equipment;
a module for constructing an initial panoramic image corresponding to the target scene based on the image data;
the positioning data receiving module is used for receiving positioning data sent by a user terminal, and the positioning data at least carries azimuth data, proportion data and primitive data;
an intermediate image obtaining module, configured to embed the primitive data in the initial panoramic image based on the orientation data, and obtain an intermediate panoramic image;
the target image acquisition module is used for adjusting the primitive data in the intermediate panoramic image based on the proportion data to acquire a target panoramic image;
and the target image output module is used for outputting the target panoramic image to the user terminal.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
comprising a memory and a processor, said computer readable storage medium having stored thereon a computer program which, when executed by the processor, implements the steps of the SVG-based panoramic image rendering method as described above.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the SVG-based panoramic image rendering method as described above.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
the application provides a SVG-based panoramic image drawing method, which comprises the following steps: acquiring image data of a target scene based on spherical camera equipment; constructing an initial panoramic image corresponding to the target scene based on the image data; receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data; embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image; adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image; and outputting the target panoramic image to the user terminal. The image data of the target scene is acquired in an all-around mode through the spherical camera device, the image metadata are embedded into the panoramic image on the basis of the azimuth information and the proportional size information, drawing operation of the panoramic image is completed, a user can quickly complete plane schematic drawing of real scenes of various types of fields, further result refining and optimizing work can be conducted at any time according to the requirement of the fineness degree of the user, repeated work such as measurement and corresponding draft information making is not needed to be conducted by returning to the field scene, and workload of the user is greatly saved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an implementation of a SVG-based panoramic image rendering method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an SVG-based panoramic image rendering apparatus according to a second embodiment of the present application;
FIG. 3 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
Example one
Referring to fig. 1, a flowchart for implementing an SVG-based panoramic image rendering method provided in an embodiment of the present application is shown, and for convenience of explanation, only the parts related to the present application are shown.
In step S101, image data of a target scene is captured based on a sphere-based imaging apparatus.
In the embodiment of the present application, the spherical imaging apparatus refers to an imaging device that can capture an image in 360 degrees in all directions.
In the embodiment of the present application, the target scene refers to an object scene of a plan diagram that a user needs to draw, and the scene may be a building scene, an interior decoration scene, or the like.
In the embodiment of the application, the spherical camera equipment is installed at different angles of a target scene, and scene image data of the target scene is acquired at a time, so that the image data can be acquired.
In step S102, an initial panoramic image corresponding to the target scene is constructed based on the image data.
In the embodiment of the application, since image data acquired by spherical camera devices at different angles are different in height and distance, after the image data are acquired, the image data need to be spliced, vertical and horizontal position adjustment and magnification and reduction adjustment are performed based on the same reference, and finally panoramic image data similar to the target image is synthesized, namely the initial panoramic image.
In the embodiment of the application, the initial panoramic image mainly comprises a frame of a schematic plan view, and further, the initial panoramic image can also comprise a basic frame (such as a window, a door and the like) structure.
In step S103, positioning data sent by the user terminal is received, where the positioning data at least carries azimuth data, proportion data, and primitive data.
In the embodiment of the present application, the user terminal may be a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and a fixed terminal such as a digital TV, a desktop computer, etc., it should be understood that the examples of the user terminal herein are only for convenience of understanding and are not intended to limit the present invention.
In the embodiment of the application, a user can perform accurate spatial positioning operation in the spliced site panoramic scene, so that a target site can be positioned and measured in the panoramic scene.
In the embodiment of the application, the orientation data is mainly used for determining the position and the direction of various objects in the target scene in the panoramic image so as to ensure the purpose of completely fitting the actual scene.
In the embodiment of the application, the proportion data is mainly used for determining the proportion size display of various objects in the target scene in the panoramic image so as to achieve the purpose of completely fitting the proportion of the actual scene.
In the embodiment of the present application, the primitive data refers to various objects in the target scene, specifically, for example: carpets, desks, light fixtures, and the like. The primitive data is in the format of SVG, a language defined in XML for describing two-dimensional vectors and vector/raster graphics. SVG provides 3 types of graphical objects: vector graphics (for example: a path consisting of straight lines and curved lines), images (images), text (text). The graphic objects can also be grouped, added with styles, transformed, combined, etc., and the feature set includes nested transformations (nesting transformations), clipping paths (clippingpaths), alpha masks (alphamasks), filter effects (filter effects), template objects (templateobjects), and other extensions (extensions).
In step S104, the intermediate panoramic image is obtained by embedding the primitive data in the initial panoramic image based on the orientation data.
In the embodiment of the application, the image of the real scene is compared with the primitive data, the primitive data consistent with various objects in the real scene is obtained based on the image recognition technology, the primitive data of the objects are embedded into the initial panoramic image based on the azimuth information so as to ensure that the panoramic image is completely attached to the real scene, and the intermediate panoramic image can be obtained after all the primitive data are completely embedded.
In step S105, an adjustment operation is performed on the primitive data in the intermediate panoramic image based on the ratio data, so as to obtain a target panoramic image.
In the embodiment of the present application, since the primitive data sent by the user terminal is of a default size, the primitive data needs to be adjusted based on the actual proportion of the target scene, and the adjustment operation specifically may be: and scaling and adjusting the primitive data based on the frame size of the target scene and the size proportion of the object corresponding to the primitive data to be adjusted as reference, so that the object primitives consistent with the actual target scene can be obtained, and the panoramic image is ensured to be completely attached to the actual scene.
In step S106, the target panoramic image is output to the user terminal.
In the embodiment of the application, a method for drawing a panoramic image based on SVG is provided, which comprises the following steps: acquiring image data of a target scene based on spherical camera equipment; constructing an initial panoramic image corresponding to the target scene based on the image data; receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data; embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image; adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image; and outputting the target panoramic image to the user terminal. The image data of the target scene is acquired in an all-around mode through the spherical camera device, the image metadata are embedded into the panoramic image on the basis of the azimuth information and the proportional size information, drawing operation of the panoramic image is completed, a user can quickly complete plane schematic drawing of real scenes of various types of fields, further result refining and optimizing work can be conducted at any time according to the requirement of the fineness degree of the user, repeated work such as measurement and corresponding draft information making is not needed to be conducted by returning to the field scene, and workload of the user is greatly saved.
In some optional implementation manners of the first embodiment of the present application, the spherical image capturing apparatus is composed of at least 3 optical lens groups, the optical lens groups are uniformly distributed inside the spherical image capturing apparatus, and the focusing directions of the optical lens groups all point to the center of the sphere of the spherical image capturing apparatus.
In some optional implementations of the first embodiment of the present application, a connection line of central points of the lenses of the plurality of optical lens groups forms a largest equilateral shape or equilateral shape in the sphere.
In the embodiment of the application, the sphere camera device integrates n +1(n > ═ 2) optical lens groups which are uniformly embedded on the surface of the sphere device; all optical lens groups of the spherical camera device are ensured to share a shooting shutter control sensor, so that all the optical lens groups can shoot and collect optical signals at the same time; meanwhile, the manufacturing process of each group of optical lenses is uniform, so that the parameters such as refractive indexes of all the optical lenses are consistent, and the optical deviation rate of all the optical lenses is reduced to the minimum, so that the focus of each optical lens is concentrated at the spherical center of the spherical equipment.
In the embodiment of the application, the manufacturing process of each group of optical lenses is uniform, so that parameters such as refractive indexes of all the optical lenses are consistent, and the optical deviation ratios of all the optical lenses are reduced to the minimum, so as to ensure that the focal point of each optical lens is concentrated at the spherical center of the spherical equipment, namely the focal distance of the optical lens is approximately equal to the radius length of the spherical equipment.
In some optional implementation manners of the first embodiment of the present application, the step S101 further includes: adjusting a white balance parameter of the sphere photography apparatus.
In the embodiments of the present application, as research progresses, standardization of a panoramic image has become a necessary process for ensuring image sharpness. However, the inventors have realized that panoramic scan imaging is associated with many factors, such as the model of the slide scanner, which can cause color structure differences in the panoramic image.
In the embodiment of the present application, in order to unify the standard of panoramic scanning imaging, the white balance parameter may be adjusted for the spherical imaging apparatus. White balance is also understood as white balance, and here means that a slide glass not carrying a sample is placed under a sphere imaging device in advance, and then the color mixing ratio, that is, RGB values, of the panoramic image are adjusted based on the slide glass not carrying the sample so that the color mixing ratio of the panoramic image becomes white. That is, the standard of panoramic scan imaging is unified such that the background of the panoramic image is white.
Then, when the subsequent sphere imaging apparatus performs panoramic scan imaging, the slide bearing the sample at the time of scanning will remain white as a background because the effective image is shown instead of white, and the slide not bearing the sample at the time of scanning will remain white because the effective image is not shown. Based on this, the panoramic image obtained when the spherical imaging apparatus performs panoramic scanning imaging can be adjusted in image sharpness based on white.
In some optional implementation manners of the first embodiment of the present application, the step S101 further includes: and performing gamma curve correction processing on the sphere imaging equipment.
The inventors realized that when a light source is irradiated on a slide, the middle area of an image tends to be brighter than the edge area of the image when a ball imaging apparatus performs scan imaging, and based on this, in order to make the brightness contrast of the image smaller, the gamma parameter of the ball imaging apparatus may be adjusted, that is, the ball imaging apparatus is subjected to gamma curve correction processing so that the brightness contrast of the edge area of the image and the middle area of the image can be relatively reduced.
Further, in order to be able to unify the standards of panoramic scan imaging, gamma curve correction processing is also required for the spherical imaging apparatus. The gamma curve correction can be used for compensating the color display difference of images when the spherical camera devices in the slide scanners of different models scan and image, so that the images can show the same color display effect when the spherical camera devices in the slide scanners of different models scan and image.
By such an arrangement, after the gamma curve is corrected, the following purposes can be achieved: the color of the gray scale of the dark field is obviously improved, the color error of each gray scale is obviously reduced, the color detail of the dark field is clear, the image color is displayed consistently, the transparency is good, and the brightness contrast is relatively reduced.
In summary, a SVG-based panoramic image rendering method is provided, which includes: acquiring image data of a target scene based on spherical camera equipment; constructing an initial panoramic image corresponding to the target scene based on the image data; receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data; embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image; adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image; and outputting the target panoramic image to the user terminal. The image data of the target scene is acquired in an all-around mode through the spherical camera device, the image metadata are embedded into the panoramic image on the basis of the azimuth information and the proportional size information, drawing operation of the panoramic image is completed, a user can quickly complete plane schematic drawing of real scenes of various types of fields, further result refining and optimizing work can be conducted at any time according to the requirement of the fineness degree of the user, repeated work such as measurement and corresponding draft information making is not needed to be conducted by returning to the field scene, and workload of the user is greatly saved. Meanwhile, a user can quickly and lightly fix the general view and the structure of a multi-angle multi-scene site by using the invention, the acquisition time range of the multi-scene site panoramic equipment is less than or equal to 20ms by using a lightweight handheld device, 36 groups of photos are acquired at one time in a multi-angle, all-directional and integral covering manner, the panoramic images are acquired at any position angles of the same scene, and the taken panoramic images are processed in real time and returned to spliced panoramic images to be displayed on various terminals to be visualized on the site; the user can utilize the single scene data which is shot well and fixed to carry out the series connection of independent scenes in different visual ranges through the function of a channel in a terminal system, the single scenes in different visual ranges are communicated according with real world scenes, the effect of free switching of multiple scenes in different visual ranges is achieved, and the immersive real scene browsing function can be carried out on any scene in the real sense, which is different from a virtual reality technology and an augmented reality technology.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Example two
With further reference to fig. 2, as an implementation of the method shown in fig. 1 described above, the present application provides an embodiment of a SVG-based panoramic image rendering apparatus, which corresponds to the embodiment of the method shown in fig. 1, and which is particularly applicable in various electronic devices.
As shown in fig. 2, the SVG-based panoramic image rendering apparatus 100 according to the second embodiment includes: an image data acquisition module 110, an initial image acquisition module 120, a positioning data receiving module 130, an intermediate image acquisition module 140, a target image acquisition module 150, and a target image output module 160. Wherein:
an image data acquisition module 110, configured to acquire image data of a target scene based on a spherical camera device;
an initial image obtaining module 120, configured to construct an initial panoramic image corresponding to the target scene based on the image data;
a positioning data receiving module 130, configured to receive positioning data sent by a user terminal, where the positioning data at least carries azimuth data, proportion data, and primitive data;
an intermediate image obtaining module 140, configured to embed the primitive data in the initial panoramic image based on the orientation data, and obtain an intermediate panoramic image;
a target image obtaining module 150, configured to perform an adjustment operation on the primitive data in the intermediate panoramic image based on the ratio data, so as to obtain a target panoramic image;
a target image output module 160, configured to output the target panoramic image to the user terminal.
In the embodiment of the present application, the spherical imaging apparatus refers to an imaging device that can capture an image in 360 degrees in all directions.
In the embodiment of the present application, the target scene refers to an object scene of a plan diagram that a user needs to draw, and the scene may be a building scene, an interior decoration scene, or the like.
In the embodiment of the application, the spherical camera equipment is installed at different angles of a target scene, and scene image data of the target scene is acquired at a time, so that the image data can be acquired.
In the embodiment of the application, since image data acquired by spherical camera devices at different angles are different in height and distance, after the image data are acquired, the image data need to be spliced, vertical and horizontal position adjustment and magnification and reduction adjustment are performed based on the same reference, and finally panoramic image data similar to the target image is synthesized, namely the initial panoramic image.
In the embodiment of the application, the initial panoramic image mainly comprises a frame of a schematic plan view, and further, the initial panoramic image can also comprise a basic frame (such as a window, a door and the like) structure.
In the embodiment of the present application, the user terminal may be a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and a fixed terminal such as a digital TV, a desktop computer, etc., it should be understood that the examples of the user terminal herein are only for convenience of understanding and are not intended to limit the present invention.
In the embodiment of the application, a user can perform accurate spatial positioning operation in the spliced site panoramic scene, so that a target site can be positioned and measured in the panoramic scene.
In the embodiment of the application, the orientation data is mainly used for determining the position and the direction of various objects in the target scene in the panoramic image so as to ensure the purpose of completely fitting the actual scene.
In the embodiment of the application, the proportion data is mainly used for determining the proportion size display of various objects in the target scene in the panoramic image so as to achieve the purpose of completely fitting the proportion of the actual scene.
In the embodiment of the present application, the primitive data refers to various objects in the target scene, specifically, for example: carpets, desks, light fixtures, and the like. The primitive data is in the format of SVG, a language defined in XML for describing two-dimensional vectors and vector/raster graphics. SVG provides 3 types of graphical objects: vector graphics (for example: a path consisting of straight lines and curved lines), images (images), text (text). The graphic objects can also be grouped, added with styles, transformed, combined, etc., and the feature set includes nested transformations (nesting transformations), clipping paths (clippingpaths), alpha masks (alphamasks), filter effects (filter effects), template objects (templateobjects), and other extensions (extensions).
In the embodiment of the application, the image of the real scene is compared with the primitive data, the primitive data consistent with various objects in the real scene is obtained based on the image recognition technology, the primitive data of the objects are embedded into the initial panoramic image based on the azimuth information so as to ensure that the panoramic image is completely attached to the real scene, and the intermediate panoramic image can be obtained after all the primitive data are completely embedded.
In the embodiment of the present application, since the primitive data sent by the user terminal is of a default size, the primitive data needs to be adjusted based on the actual proportion of the target scene, and the adjustment operation specifically may be: and scaling and adjusting the primitive data based on the frame size of the target scene and the size proportion of the object corresponding to the primitive data to be adjusted as reference, so that the object primitives consistent with the actual target scene can be obtained, and the panoramic image is ensured to be completely attached to the actual scene.
In an embodiment of the present application, there is provided a SVG-based panoramic image drawing apparatus, including: the image data acquisition module is used for acquiring image data of a target scene based on the spherical camera equipment; an initial image acquisition module for constructing an initial panoramic image corresponding to the target scene based on the image data; the positioning data receiving module is used for receiving positioning data sent by a user terminal, and the positioning data at least carries azimuth data, proportion data and primitive data; an intermediate image obtaining module, configured to embed the primitive data in the initial panoramic image based on the orientation data, and obtain an intermediate panoramic image; the target image acquisition module is used for adjusting the primitive data in the intermediate panoramic image based on the proportion data to acquire a target panoramic image; and the target image output module is used for outputting the target panoramic image to the user terminal. The image data of the target scene is acquired in an all-around mode through the spherical camera device, the image metadata are embedded into the panoramic image on the basis of the azimuth information and the proportional size information, drawing operation of the panoramic image is completed, a user can quickly complete plane schematic drawing of real scenes of various types of fields, further result refining and optimizing work can be conducted at any time according to the requirement of the fineness degree of the user, repeated work such as measurement and corresponding draft information making is not needed to be conducted by returning to the field scene, and workload of the user is greatly saved.
In some optional implementation manners of the first embodiment of the present application, the spherical image capturing apparatus is composed of at least 3 optical lens groups, the optical lens groups are uniformly distributed inside the spherical image capturing apparatus, and the focusing directions of the optical lens groups all point to the center of the sphere of the spherical image capturing apparatus.
In some optional implementations of the first embodiment of the present application, a connection line of central points of the lenses of the plurality of optical lens groups forms a largest equilateral shape or equilateral shape in the sphere.
In the embodiment of the application, the sphere camera device integrates n +1(n > ═ 2) optical lens groups which are uniformly embedded on the surface of the sphere device; all optical lens groups of the spherical camera device are ensured to share a shooting shutter control sensor, so that all the optical lens groups can shoot and collect optical signals at the same time; meanwhile, the manufacturing process of each group of optical lenses is uniform, so that the parameters such as refractive indexes of all the optical lenses are consistent, and the optical deviation rate of all the optical lenses is reduced to the minimum, so that the focus of each optical lens is concentrated at the spherical center of the spherical equipment.
In the embodiment of the application, the manufacturing process of each group of optical lenses is uniform, so that parameters such as refractive indexes of all the optical lenses are consistent, and the optical deviation ratios of all the optical lenses are reduced to the minimum, so as to ensure that the focal point of each optical lens is concentrated at the spherical center of the spherical equipment, namely the focal distance of the optical lens is approximately equal to the radius length of the spherical equipment.
In some optional implementation manners of the first embodiment of the present application, the step S101 further includes: adjusting a white balance parameter of the sphere photography apparatus.
In the embodiments of the present application, as research progresses, standardization of a panoramic image has become a necessary process for ensuring image sharpness. However, the inventors have realized that panoramic scan imaging is associated with many factors, such as the model of the slide scanner, which can cause color structure differences in the panoramic image.
In the embodiment of the present application, in order to unify the standard of panoramic scanning imaging, the white balance parameter may be adjusted for the spherical imaging apparatus. White balance is also understood as white balance, and here means that a slide glass not carrying a sample is placed under a sphere imaging device in advance, and then the color mixing ratio, that is, RGB values, of the panoramic image are adjusted based on the slide glass not carrying the sample so that the color mixing ratio of the panoramic image becomes white. That is, the standard of panoramic scan imaging is unified such that the background of the panoramic image is white.
Then, when the subsequent sphere imaging apparatus performs panoramic scan imaging, the slide bearing the sample at the time of scanning will remain white as a background because the effective image is shown instead of white, and the slide not bearing the sample at the time of scanning will remain white because the effective image is not shown. Based on this, the panoramic image obtained when the spherical imaging apparatus performs panoramic scanning imaging can be adjusted in image sharpness based on white.
In some optional implementation manners of the first embodiment of the present application, the step S101 further includes: and performing gamma curve correction processing on the sphere imaging equipment.
The inventors realized that when a light source is irradiated on a slide, the middle area of an image tends to be brighter than the edge area of the image when a ball imaging apparatus performs scan imaging, and based on this, in order to make the brightness contrast of the image smaller, the gamma parameter of the ball imaging apparatus may be adjusted, that is, the ball imaging apparatus is subjected to gamma curve correction processing so that the brightness contrast of the edge area of the image and the middle area of the image can be relatively reduced.
Further, in order to be able to unify the standards of panoramic scan imaging, gamma curve correction processing is also required for the spherical imaging apparatus. The gamma curve correction can be used for compensating the color display difference of images when the spherical camera devices in the slide scanners of different models scan and image, so that the images can show the same color display effect when the spherical camera devices in the slide scanners of different models scan and image.
By such an arrangement, after the gamma curve is corrected, the following purposes can be achieved: the color of the gray scale of the dark field is obviously improved, the color error of each gray scale is obviously reduced, the color detail of the dark field is clear, the image color is displayed consistently, the transparency is good, and the brightness contrast is relatively reduced.
To sum up, the present application provides a multi-scene-based panoramic imaging apparatus, comprising: the image data acquisition module is used for acquiring image data of a target scene based on the spherical camera equipment; a module for constructing an initial panoramic image corresponding to the target scene based on the image data; the positioning data receiving module is used for receiving positioning data sent by a user terminal, and the positioning data at least carries azimuth data, proportion data and primitive data; an intermediate image obtaining module, configured to embed the primitive data in the initial panoramic image based on the orientation data, and obtain an intermediate panoramic image; the target image acquisition module is used for adjusting the primitive data in the intermediate panoramic image based on the proportion data to acquire a target panoramic image; and the target image output module is used for outputting the target panoramic image to the user terminal. The image data of the target scene is acquired in an all-around mode through the spherical camera device, the image metadata are embedded into the panoramic image on the basis of the azimuth information and the proportional size information, drawing operation of the panoramic image is completed, a user can quickly complete plane schematic drawing of real scenes of various types of fields, further result refining and optimizing work can be conducted at any time according to the requirement of the fineness degree of the user, repeated work such as measurement and corresponding draft information making is not needed to be conducted by returning to the field scene, and workload of the user is greatly saved. Meanwhile, a user can quickly and lightly fix the general view and the structure of a multi-angle multi-scene site by using the invention, the acquisition time range of the multi-scene site panoramic equipment is less than or equal to 20ms by using a lightweight handheld device, 36 groups of photos are acquired at one time in a multi-angle, all-directional and integral covering manner, the panoramic images are acquired at any position angles of the same scene, and the taken panoramic images are processed in real time and returned to spliced panoramic images to be displayed on various terminals to be visualized on the site; the user can utilize the single scene data which is shot well and fixed to carry out the series connection of independent scenes in different visual ranges through the function of a channel in a terminal system, the single scenes in different visual ranges are communicated according with real world scenes, the effect of free switching of multiple scenes in different visual ranges is achieved, and the immersive real scene browsing function can be carried out on any scene in the real sense, which is different from a virtual reality technology and an augmented reality technology.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 3, fig. 3 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 200 comprises a memory 201, a processor 202, a network interface 203 communicatively connected to each other via a system bus. It is noted that only computer device 200 having components 201 and 203 is shown, but it is understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 201 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 201 may be an internal storage unit of the computer device 200, such as a hard disk or a memory of the computer device 200. In other embodiments, the memory 201 may also be an external storage device of the computer device 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 200. Of course, the memory 201 may also include both internal and external storage devices of the computer device 200. In this embodiment, the memory 201 is generally used to store an operating system installed in the computer device 200 and various types of application software, such as program codes of a SVG-based panoramic image rendering method, and the like. Further, the memory 201 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 202 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 202 is generally operative to control overall operation of the computer device 200. In this embodiment, the processor 202 is configured to execute the program code stored in the memory 201 or process data, for example, execute the program code of the SVG-based panoramic image rendering method.
The network interface 203 may comprise a wireless network interface or a wired network interface, and the network interface 203 is generally used for establishing communication connection between the computer device 200 and other electronic devices.
The present application provides yet another embodiment, which is to provide a computer-readable storage medium storing an SVG-based panoramic image rendering program executable by at least one processor to cause the at least one processor to perform the steps of the SVG-based panoramic image rendering method as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A SVG-based panoramic image rendering method is characterized by comprising the following steps:
acquiring image data of a target scene based on spherical camera equipment;
constructing an initial panoramic image corresponding to the target scene based on the image data;
receiving positioning data sent by a user terminal, wherein the positioning data at least carries azimuth data, proportion data and primitive data;
embedding the primitive data in the initial panoramic image based on the azimuth data to obtain an intermediate panoramic image;
adjusting the primitive data in the intermediate panoramic image based on the proportion data to obtain a target panoramic image;
and outputting the target panoramic image to the user terminal.
2. The multi-scene-based panoramic imaging method as recited in claim 1, wherein said spherical camera device is composed of at least 3 optical lens groups, said optical lens groups are uniformly distributed inside said spherical camera device, and the focusing directions of said optical lens groups all point to the center of the sphere of said spherical camera device.
3. The multi-scene based panoramic imaging method of claim 2, wherein the connecting lines of the lens center points of the plurality of optical lens groups form the largest equilateral or equilateral solid within a sphere.
4. The multi-scene based panoramic imaging method of claim 1, wherein the step of acquiring image data of the target scene by the sphere based camera device comprises the steps of:
adjusting a white balance parameter of the sphere photography apparatus.
5. The multi-scene based panoramic imaging method of claim 1, wherein the step of acquiring image data of the target scene by the sphere based camera device comprises the steps of:
and performing gamma curve correction processing on the sphere imaging equipment.
6. A panoramic image drawing device based on SVG, characterized in that the device comprises:
the image data acquisition module is used for acquiring image data of a target scene based on the spherical camera equipment;
an initial image acquisition module for constructing an initial panoramic image corresponding to the target scene based on the image data;
the positioning data receiving module is used for receiving positioning data sent by a user terminal, and the positioning data at least carries azimuth data, proportion data and primitive data;
an intermediate image obtaining module, configured to embed the primitive data in the initial panoramic image based on the orientation data, and obtain an intermediate panoramic image;
the target image acquisition module is used for adjusting the primitive data in the intermediate panoramic image based on the proportion data to acquire a target panoramic image;
and the target image output module is used for outputting the target panoramic image to the user terminal.
7. The SVG-based panoramic image rendering apparatus according to claim 6, wherein the spherical imaging device is composed of at least 3 optical lens groups which are uniformly distributed inside the spherical imaging device and whose focusing directions are all directed to the center of sphere of the spherical imaging device.
8. The SVG-based panoramic image rendering apparatus of claim 7, wherein the connecting lines of the lens center points of the plurality of optical lens groups constitute the largest equilateral or equilateral volume within a sphere.
9. A computer device comprising a memory in which a computer program is stored and a processor which, when executed, implements the steps of the SVG-based panoramic image rendering method recited in any one of claims 1 to 3.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which when executed by a processor, implements the steps of the SVG-based panoramic image rendering method according to any one of claims 1 to 3.
CN202010963138.7A 2020-09-14 2020-09-14 SVG-based panoramic image drawing method and device, computer equipment and storage medium Pending CN112131640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010963138.7A CN112131640A (en) 2020-09-14 2020-09-14 SVG-based panoramic image drawing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010963138.7A CN112131640A (en) 2020-09-14 2020-09-14 SVG-based panoramic image drawing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112131640A true CN112131640A (en) 2020-12-25

Family

ID=73846004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010963138.7A Pending CN112131640A (en) 2020-09-14 2020-09-14 SVG-based panoramic image drawing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112131640A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220726A (en) * 2017-04-26 2017-09-29 消检通(深圳)科技有限公司 Fire-fighting equipment localization method, mobile terminal and system based on augmented reality
CN108762731A (en) * 2018-05-21 2018-11-06 中国电力科学研究院有限公司 A kind of general field model panorama visualization method and system
CN109978755A (en) * 2019-03-11 2019-07-05 广州杰赛科技股份有限公司 Panoramic image synthesis method, device, equipment and storage medium
CN209964215U (en) * 2019-07-23 2020-01-17 深圳移动互联研究院有限公司 Spherical three-dimensional panoramic imaging system
US20200068138A1 (en) * 2018-08-21 2020-02-27 Gopro, Inc. Field of view adjustment
CN111127655A (en) * 2019-12-18 2020-05-08 北京城市网邻信息技术有限公司 House layout drawing construction method and device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220726A (en) * 2017-04-26 2017-09-29 消检通(深圳)科技有限公司 Fire-fighting equipment localization method, mobile terminal and system based on augmented reality
CN108762731A (en) * 2018-05-21 2018-11-06 中国电力科学研究院有限公司 A kind of general field model panorama visualization method and system
US20200068138A1 (en) * 2018-08-21 2020-02-27 Gopro, Inc. Field of view adjustment
CN109978755A (en) * 2019-03-11 2019-07-05 广州杰赛科技股份有限公司 Panoramic image synthesis method, device, equipment and storage medium
CN209964215U (en) * 2019-07-23 2020-01-17 深圳移动互联研究院有限公司 Spherical three-dimensional panoramic imaging system
CN111127655A (en) * 2019-12-18 2020-05-08 北京城市网邻信息技术有限公司 House layout drawing construction method and device, and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周春艳, 邹峥嵘: "基于全景图像的虚拟校园", 电脑与信息技术, no. 02, pages 34 - 36 *
飞揪Q9776: "案件现场全景再现分析演示系统", 《百度文库》, pages 1 - 4 *

Similar Documents

Publication Publication Date Title
CN110910486B (en) Indoor scene illumination estimation model, method and device, storage medium and rendering method
US9600859B2 (en) Image processing device, image processing method, and information processing device
CN112272292B (en) Projection correction method, apparatus and storage medium
CN111436208A (en) Planning method and device for surveying and mapping sampling point, control terminal and storage medium
US20230084728A1 (en) Systems and methods for object measurement
CN110335330B (en) Image simulation generation method and system, deep learning algorithm training method and electronic equipment
CN108717704B (en) Target tracking method based on fisheye image, computer device and computer readable storage medium
CN111325798B (en) Camera model correction method, device, AR implementation equipment and readable storage medium
CN110062157B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN104867113A (en) Method and system for perspective distortion correction of image
CN110458964B (en) Real-time calculation method for dynamic illumination of real environment
US20230179734A1 (en) Video image display method and apparatus, multimedia device and storage medium
US20220335684A1 (en) Finite aperture omni-directional stereo light transport
CN113724391A (en) Three-dimensional model construction method and device, electronic equipment and computer readable medium
KR20160096966A (en) Method for notifying environmental context information, electronic apparatus and storage medium
CN111340960A (en) Image modeling method and device, storage medium and electronic equipment
US20140354831A1 (en) Perspective correction using a reflection
CN114358112A (en) Video fusion method, computer program product, client and storage medium
CN110047126B (en) Method, apparatus, electronic device, and computer-readable storage medium for rendering image
CN112131640A (en) SVG-based panoramic image drawing method and device, computer equipment and storage medium
CN115753019A (en) Pose adjusting method, device and equipment of acquisition equipment and readable storage medium
CN109446945A (en) Threedimensional model treating method and apparatus, electronic equipment, computer readable storage medium
CN112102481A (en) Method and device for constructing interactive simulation scene, computer equipment and storage medium
CN112087612A (en) Multi-scene-based panoramic imaging method and device, computer equipment and storage medium
CN111292245A (en) Image processing method and device

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
CB02 Change of applicant information

Address after: 518000 Room 403, building 4, Shenzhen software industry base, No. 19, 17 and 18, Haitian 1st Road, Binhai community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Applicant after: Shenzhen man machine consensus Technology Co.,Ltd.

Address before: 30A, building 5, building 1-5, Huating, modern city, No. 17, Nanguang Road, Nanshan street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Mobile Internet Research Institute Co.,Ltd.

CB02 Change of applicant information