CN113593046B - Panorama switching method and device, electronic equipment and storage medium - Google Patents

Panorama switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113593046B
CN113593046B CN202110693968.7A CN202110693968A CN113593046B CN 113593046 B CN113593046 B CN 113593046B CN 202110693968 A CN202110693968 A CN 202110693968A CN 113593046 B CN113593046 B CN 113593046B
Authority
CN
China
Prior art keywords
vertex
box model
sky box
normal vector
setting
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
CN202110693968.7A
Other languages
Chinese (zh)
Other versions
CN113593046A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110693968.7A priority Critical patent/CN113593046B/en
Publication of CN113593046A publication Critical patent/CN113593046A/en
Application granted granted Critical
Publication of CN113593046B publication Critical patent/CN113593046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Abstract

The disclosure provides a panoramic switching method, a panoramic switching device, electronic equipment and a storage medium, relates to the technical field of artificial intelligence, and particularly relates to the fields of image processing, intelligent transportation and deep learning. The specific implementation scheme is as follows: determining the surface of the sky box model where each vertex of the sky box model is located; setting according to the moving speed of the sky box model where the vertexes are located, wherein the moving speed of the sky box model faces the vertexes; and performing panoramic switching based on the set sky box model. According to the panoramic switching method, panoramic switching is performed by setting the moving speed of the vertexes of each face of the sky box model, so that the moving and deformation speeds of near objects are high, the moving and deformation speeds of far objects are relatively low, the effect of simulating optical flow shuttling is achieved, the switching of panoramic layers is more natural, the normal visual effect is attached, and the visual effect during panoramic switching is further improved.

Description

Panorama switching method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the fields of image processing, intelligent transportation and deep learning in the technical field of artificial intelligence, in particular to a panoramic switching method, a panoramic switching device, electronic equipment and a storage medium.
Background
Under a map panoramic scene, when a panoramic image layer is switched, a shuttling visual effect of panoramic ground and surrounding buildings is generally realized based on a sky box model.
In the related art, when the panoramic image layer is switched, translation processing is uniformly performed on all vertexes of the sky box model, so that the visual effect is poor during panoramic switching.
Disclosure of Invention
The disclosure provides a panoramic switching method, a panoramic switching device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a panorama switching method, including: determining the surface of the sky box model where each vertex of the sky box model is located; setting according to the moving speed of the sky box model facing the vertex where the vertex is located; and performing panoramic switching based on the set sky box model.
According to another aspect of the present disclosure, there is provided a panorama switching device, including: the determining module is used for determining the surface of the sky box model where each vertex of the sky box model is located; the setting module is used for setting according to the moving speed of the sky box model where the vertex is located, which faces the vertex; and the switching module is used for carrying out panoramic switching based on the set sky box model.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the panorama switching method of an aspect of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the panorama switching method according to an aspect of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a panorama switching method according to an aspect of the present disclosure.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flow chart of a panorama switching method according to a first embodiment of the present disclosure;
fig. 2 is a flow chart of a panorama switching method according to a second embodiment of the present disclosure;
fig. 3 is a flow chart of a panorama switching method according to a third embodiment of the present disclosure;
fig. 4 is a flow chart of a panorama switching method according to a fourth embodiment of the present disclosure;
fig. 5 is a flowchart of a panorama switching method according to a fifth embodiment of the present disclosure;
fig. 6 is an overall flowchart of a panorama switching method according to a sixth embodiment of the present disclosure;
fig. 7 is a block diagram of a panorama switching device according to a first embodiment of the present disclosure;
fig. 8 is a block diagram of a panorama switching device according to a second embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device used to implement a panorama switching method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Artificial Intelligence (AI) is a technical science that studies, develops, and simulates the theory, method, technology, and application of human intelligence. At present, the AI technology has the advantages of high automation degree, high accuracy and low cost, and is widely applied.
Image Processing (Image Processing) is a technique in which an Image is analyzed with a computer to achieve a desired result. The image processing is to process the image information by using a computer so as to meet the behaviors of visual psychology or application requirements of people, and has wide application, and is mostly used for mapping, atmospheric science, astronomy, image beautifying, image improvement identification and the like.
The intelligent transportation (Intelligent Traffic System, ITS for short) is also called an intelligent transportation system (Intelligent Transportation System), which is a comprehensive transportation system for effectively and comprehensively applying advanced scientific technologies (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operation study, artificial intelligence and the like) to transportation, service control and vehicle manufacturing, and enhancing the connection among vehicles, roads and users, thereby forming a comprehensive transportation system for guaranteeing safety, improving efficiency, improving environment and saving energy.
Deep Learning (DL) is a new research direction in the field of Machine Learning (ML), and learns the internal rules and presentation layers of sample data, and the information obtained in the Learning process is greatly helpful to the interpretation of data such as text, images and sounds. Its final goal is to have the machine have analytical learning capabilities like a person, and to recognize text, image, and sound data. For the specific research content, the method mainly comprises a neural network system based on convolution operation, namely a convolution neural network; a self-encoding neural network based on a plurality of layers of neurons; and (3) pre-training in a multi-layer self-coding neural network mode, and further optimizing a deep confidence network of the neural network weight by combining the identification information. Deep learning has achieved many results in search technology, data mining, machine learning, machine translation, natural language processing, multimedia learning, speech, recommendation and personalization techniques, and other related fields.
Panoramic handover methods, apparatuses, electronic devices, and storage media according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a panorama switching method according to a first embodiment of the present disclosure.
As shown in fig. 1, the panorama switching method according to the embodiment of the present disclosure may specifically include the following steps:
s101, determining the surface of the sky box model where each vertex of the sky box model is located.
Specifically, the implementation subject of the panorama switching method of the embodiments of the present disclosure may be a panorama switching apparatus provided by the embodiments of the present disclosure, where the panorama switching apparatus may be a hardware device with data information processing capability and/or software necessary for driving the hardware device to work. Alternatively, the execution body may include a workstation, a server, a computer, a user terminal, and other devices. The user terminal comprises, but is not limited to, a mobile phone, a computer, intelligent voice interaction equipment, intelligent household appliances, vehicle-mounted terminals and the like.
In the embodiment of the disclosure, the sky box model is a pre-established cube, and can be obtained by rendering six faces of the cube. And determining the surface of the sky box model where each vertex of the sky box model is located according to the coordinates of each vertex of the sky box model, namely determining which surface of the upper, lower, left, right, front and rear 6 surfaces of the sky box model each vertex of the sky box model is located. Wherein, the vertexes in the embodiment of the disclosure refer to pixel points on each surface of the sky box model, and not 8 vertexes of a cube corresponding to the sky box model.
S102, setting according to the moving speed of the sky box model where the vertexes are located, wherein the moving speed faces the vertexes.
Specifically, according to the surface of the sky box model where each vertex of the sky box model is located determined in step S101, the moving speed of each vertex is set, so that the moving and deforming speeds of the near object are fast, the moving and deforming speeds of the far object are relatively slow, the effect of simulating the shuttling of the optical flow is achieved, the switching of the panoramic image layer is more natural, and the normal visual effect is attached.
The setting the movement speed of the vertex may specifically include setting a shuttle distance of the vertex, where the shuttle distance is a translation distance in a unit time of the vertex.
S103, panoramic switching is conducted based on the set sky box model.
Specifically, the panoramic image layer is switched based on the sky box model after the moving speed of each vertex is set in step S102.
In summary, according to the panorama switching method of the embodiments of the present disclosure, a face of a sky box model where each vertex of the sky box model is located is determined, setting is performed according to a moving speed of the sky box model where the vertex is located, where the face of the sky box model faces the vertex, and panorama switching is performed based on the set sky box model. According to the panoramic switching method, panoramic switching is performed by setting the moving speed of the vertexes of each face of the sky box model, so that the moving and deforming speeds of near objects are high, the moving and deforming speeds of far objects are relatively low, the effect of simulating optical flow shuttling is achieved, the switching of panoramic layers is more natural, the normal visual effect is attached, and the visual effect during panoramic switching is further improved.
Fig. 2 is a flowchart illustrating a panorama switching method according to a second embodiment of the present disclosure. As shown in fig. 2, on the basis of the embodiment shown in fig. 1, the panorama switching method according to the embodiment of the present disclosure may specifically include the following steps:
the step S101 may specifically include the following steps S201 to S202.
S201, calculating normal vectors of the vertexes.
Specifically, the normal vector of each vertex of the sky box model is calculated according to the coordinates of each vertex of the sky box model.
S202, determining the surface of the sky box model where the vertex is located according to the normal vector of the vertex.
Specifically, the plane of the sky box model where the vertex is located may be determined according to the normal vector of the vertex and the normal vector of each plane of the sky box model calculated in step S201.
S203, setting according to the moving speed of the sky box model where the vertexes are located, wherein the moving speed faces the vertexes.
S204, performing panoramic switching based on the set sky box model.
Specifically, steps S203 to 204 in the embodiment of the present disclosure are the same as steps S102 to S103 in the above embodiment, and will not be described here again.
Further, as shown in fig. 3, based on the embodiment shown in fig. 2, step S201 "calculating the normal vector of the vertex" may specifically include:
s301, traversing a triangle formed by any three vertexes of the sky box model, and calculating a normal vector of the triangle.
Specifically, since the normal vector of one point is equal to the sum of the normal vectors of all triangles whose vertices are at this point, the normal vector of this point can be obtained from the normal vector of each triangle whose vertices are at this point as long as the normal vector of each triangle whose vertices are at this point is calculated.
All vertexes of six faces of the sky box model form a set, triangles formed by any three vertexes in the set are traversed, and normal vectors of the triangles are calculated. The normal vector of the triangle can be obtained by cross multiplication and normalization of two vectors of the triangle. For example, assuming that three vertexes of a triangle are A, B, C, a vector from a to B and a vector from a to C can be obtained by subtracting coordinates of the two vertexes, the two vectors are cross multiplied, and a normal vector of the triangle is obtained by normalizing the vectors to make a modulus of the vector be 1.
S302, calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
Specifically, according to the normal vector of each triangle calculated in step S301, the sum of the normal vectors of all triangles corresponding to the vertex is calculated, and the normal vector of the vertex is obtained.
Further, as shown in fig. 4, based on the embodiment shown in fig. 2, step S202 "determining the face of the sky box model where the vertex is located according to the normal vector of the vertex" may specifically include:
s401, calculating a dot product of a normal vector of the vertex and a normal vector of a face of the sky box model.
Specifically, the dot product results of the normal vector of the vertex obtained in step S201 and the normal vectors of the six faces of the sky box model are calculated, respectively. The normal vector of the six faces of the space box model may have a modulus of 1.
S402, determining the surface of the sky box model where the vertex is located according to the dot multiplication result.
Specifically, since the two vectors are perpendicular to each other and the time multiplication result is 0, the time multiplication result of the two vectors (modulo 1) with an included angle of 0 ° is 1, and the time multiplication result of the two vectors (modulo 1) with an included angle of 180 ° is-1, the plane of the sky box model where the vertex is located can be determined according to the time multiplication result calculated in step S401. For example, the normal vector of the vertex and the normal vectors of the front, rear, left and right surfaces of the sky box model are 0, the normal vector above the sky box model is 1, and the normal vector below the sky box model is-1, and then the surface of the sky box model where the vertex is located is determined to be the upper surface of the sky box model.
Further, as shown in fig. 5, based on the embodiment shown in fig. 2, step S203 "setting according to the moving speed of the sky box model where the vertex is located, the method may specifically include:
s501, setting the moving speed of the vertex to be larger than the preset speed if the surface of the sky box model where the vertex is positioned is left or right.
Specifically, the normal moving speed of the vertex of each surface is preset to be a preset speed according to the visual effect, and the preset speed can be a preset shuttle distance in unit time of each surface. When the surface of the sky box model where the vertexes are located is left or right, the moving speed of the vertexes is set to be larger than the preset speed, for example, the moving speed of the vertexes is set to be 3.5 times of the preset speed.
The step S501 of setting the moving speed of the vertex to be greater than the preset speed may further include the following steps: determining a coordinate range in which coordinates of the vertex in the vertical direction are located; the movement speed of the vertex is determined according to the coordinate range.
Specifically, in order to make the optical flow shuttle effect finer and more vivid, layering treatment can be performed on the vertexes on the left and right surfaces in the vertical direction (i.e. the height), coordinate ranges of the left and right surfaces of the sky box model in the vertical direction are divided in advance, different coordinate ranges can correspond to different moving speeds, and the moving speed of the vertexes is determined according to the coordinate ranges of the coordinates of the vertexes in the vertical direction.
S502, setting the moving speed of the vertex to be equal to the preset speed if the surface of the sky box model where the vertex is located is not the left surface and is not the right surface.
Specifically, when the surface of the sky box model where the vertex is located is not the left surface and is not the right surface, the moving speed of the vertex is set to be a preset speed.
In summary, according to the panorama switching method of the embodiments of the present disclosure, a face of a sky box model where each vertex of the sky box model is located is determined, setting is performed according to a moving speed of the sky box model where the vertex is located, where the face of the sky box model faces the vertex, and panorama switching is performed based on the set sky box model. According to the panoramic switching method, panoramic switching is performed by setting the moving speed of the vertexes of each face of the sky box model, so that the moving and deforming speeds of near objects are high, the moving and deforming speeds of far objects are relatively low, the effect of simulating optical flow shuttling is achieved, the switching of panoramic layers is more natural, the normal visual effect is attached, and the visual effect during panoramic switching is further improved. The moving speeds of the other surfaces except the left surface and the right surface are equal to the preset speed, the moving speeds of the left surface and the right surface are set to be larger than the preset speed to simulate the optical flow shuttling effect, and the moving speeds of the vertexes of different heights of the left surface and the right surface are subjected to layering treatment, so that the shuttling effect is finer and more vivid.
Fig. 6 is an overall flowchart of a panorama switching method according to an embodiment of a sixth aspect of the present disclosure. As shown in fig. 6, the panorama switching method of the embodiment of the present disclosure specifically includes the following steps:
s601, traversing a triangle formed by any three vertexes of the sky box model.
S602, calculating normal vectors of triangles.
S603, calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
S604, calculating the normal vector of the vertex and the dot product of the plane of the sky box model.
S605, determining the surface of the sky box model where the vertex is located according to the dot multiplication result.
S606, if the surface of the sky box model where the vertex is located is left or right, setting the moving speed of the vertex to be greater than the preset speed.
S607, if the surface of the sky box model where the vertex is located is not left and not right, setting the moving speed of the vertex to be equal to the preset speed.
And S608, performing panoramic switching based on the set sky box model.
Fig. 7 is a block diagram of a panorama switching device according to a first embodiment of the present disclosure.
As shown in fig. 7, a panorama switching device 700 according to an embodiment of the present disclosure includes: a determining module 701, a setting module 702 and a switching module 703.
The determining module 701 is configured to determine a face of the sky box model where each vertex of the sky box model is located.
The setting module 702 is configured to set according to a moving speed of the sky box model where the vertex is located, where the moving speed faces the vertex.
And the switching module 703 is used for performing panoramic switching based on the set sky box model.
The explanation of the embodiment of the panoramic switching method is also applicable to the panoramic switching device of the embodiment of the disclosure, and the specific process is not repeated here.
To sum up, the panorama switching device according to the embodiments of the present disclosure determines a face of a sky box model where each vertex of the sky box model is located, sets according to a moving speed of the sky box model where the vertex is located, and performs panorama switching based on the set sky box model. According to the panoramic switching device, panoramic switching is performed by setting the moving speed of each surface vertex of the sky box model, so that the moving and deforming speeds of near objects are high, the moving and deforming speeds of far objects are relatively low, the effect of simulating optical flow shuttling is achieved, the panoramic image layer is switched more naturally, the normal visual effect is attached, and the visual effect during panoramic switching is improved.
Fig. 8 is a block diagram of a panorama switching device according to a second embodiment of the present disclosure.
As shown in fig. 8, a panorama switching device 800 according to an embodiment of the present disclosure includes: a determining module 801, a setting module 802, and a switching module 803.
Wherein the determining module 801 has the same structure and function as the determining module 701 in the previous embodiment, the setting module 802 has the same structure and function as the setting module 702 in the previous embodiment, and the switching module 803 has the same structure and function as the switching module 703 in the previous embodiment.
Further, the determining module 801 may specifically include: a calculating unit 8011 for calculating a normal vector of the vertex; and a determining unit 8012, configured to determine a plane of the sky box model where the vertex is located according to a normal vector of the vertex.
Further, the computing unit 8011 may specifically include: a first calculating subunit 80111, configured to traverse a triangle formed by any three vertices of the sky box model, and calculate a normal vector of the triangle; and a second calculating subunit 80112, configured to calculate a normal vector of the vertex according to a normal vector of the triangle corresponding to the vertex.
Further, the determining unit 8012 may specifically include: a third calculation subunit 80121, configured to calculate a normal vector of the vertex and a dot product result of the face of the sky box model; and a first determining subunit 80122, configured to determine, according to the dot multiplication result, a face of the sky box model where the vertex is located.
Further, the setting module 802 may specifically include: a first setting unit 8021, configured to set a movement speed of the vertex to be greater than a preset speed if a surface of the sky box model where the vertex is located is a left surface or a right surface; the second setting unit 8022 is configured to set the moving speed of the vertex equal to the preset speed if the surface of the sky box model where the vertex is located is not left and not right.
Further, the first setting unit 8021 may specifically include: a second determining subunit 80211, configured to determine a coordinate range in which coordinates of the vertex in the vertical direction are located; a third determining subunit 80212 is configured to determine the movement speed of the vertex according to the coordinate range.
Further, the setting module 802 further includes: and a third setting unit 8023, configured to set a shuttle distance of the vertex, where the shuttle distance is a translation distance in a unit time of the vertex.
To sum up, the panorama switching device according to the embodiments of the present disclosure determines a face of a sky box model where each vertex of the sky box model is located, sets according to a moving speed of the sky box model where the vertex is located, and performs panorama switching based on the set sky box model. According to the panoramic switching device, panoramic switching is performed by setting the moving speed of each surface vertex of the sky box model, so that the moving and deforming speeds of near objects are high, the moving and deforming speeds of far objects are relatively low, the effect of simulating optical flow shuttling is achieved, the panoramic image layer is switched more naturally, the normal visual effect is attached, and the visual effect during panoramic switching is improved. The moving speeds of the other surfaces except the left surface and the right surface are equal to the preset speed, the moving speeds of the left surface and the right surface are set to be larger than the preset speed to simulate the optical flow shuttling effect, and the moving speeds of the vertexes of different heights of the left surface and the right surface are subjected to layering treatment, so that the shuttling effect is finer and more vivid.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM902, and the RAM903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, or the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the respective methods and processes described above, such as the panorama switching method shown in fig. 1 to 6. For example, in some embodiments, the panorama switching method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 900 via the ROM902 and/or the communication unit 909. When the computer program is loaded into the RAM903 and executed by the computing unit 901, one or more steps of the panorama switching method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the panorama switching method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
According to an embodiment of the present disclosure, the present disclosure further provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the panorama switching method according to the above-described embodiment of the present disclosure.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A panorama switching method, comprising:
determining the surface of the sky box model where each vertex of the sky box model is located;
setting according to the moving speed of the sky box model facing the vertex where the vertex is located; and
performing panoramic switching based on the set sky box model;
the setting according to the moving speed of the sky box model where the vertex is located, the moving speed facing the vertex comprises:
the surface of the sky box model where the vertex is located is left or right, and a coordinate range where the coordinate of the vertex in the vertical direction is located is determined; determining the moving speed of the vertex according to the coordinate range, wherein the moving speed of the vertex is greater than a preset speed;
and setting the moving speed of the vertex to be equal to the preset speed if the surface of the sky box model where the vertex is positioned is not left and not right.
2. The panorama switching method according to claim 1, wherein said determining a face of the sky box model where each vertex of the sky box model is located comprises:
calculating the normal vector of the vertex; and
and determining the surface of the sky box model where the vertex is located according to the normal vector of the vertex.
3. The panorama switching method according to claim 2, wherein the calculating a normal vector of the vertex comprises:
traversing a triangle formed by any three vertexes of the sky box model, and calculating the normal vector of the triangle; and
and calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
4. The panorama switching method according to claim 2, wherein said determining a face of the sky box model where the vertex is located from a normal vector of the vertex comprises:
calculating a dot product of a normal vector of the vertex and a normal vector of a face of the sky box model; and
and determining the surface of the sky box model where the vertex is located according to the dot multiplication result.
5. The panorama switching method according to claim 1, wherein the setting of the moving speed of the vertex comprises:
setting the shuttle distance of the vertex, wherein the shuttle distance is the translation distance of the vertex in unit time.
6. A panorama switching device, comprising:
the determining module is used for determining the surface of the sky box model where each vertex of the sky box model is located;
the setting module is used for setting according to the moving speed of the sky box model where the vertex is located, which faces the vertex; and
the switching module is used for performing panoramic switching based on the set sky box model;
wherein, the setting module includes:
a first setting unit, configured to determine a coordinate range in which a coordinate of the vertex in a vertical direction is located if a surface of the sky box model in which the vertex is located is a left surface or a right surface, and determine a movement speed of the vertex according to the coordinate range, where the movement speed of the vertex is greater than a preset speed;
and the second setting unit is used for setting the moving speed of the vertex to be equal to the preset speed if the surface of the sky box model where the vertex is positioned is not left and not right.
7. The panorama switching device of claim 6, wherein the determining module comprises:
a calculation unit for calculating a normal vector of the vertex; and
and the determining unit is used for determining the surface of the sky box model where the vertex is positioned according to the normal vector of the vertex.
8. The panorama switching device of claim 7, wherein the computing unit comprises:
the first calculating subunit is used for traversing the triangle formed by any three vertexes of the sky box model and calculating the normal vector of the triangle; and
and the second calculating subunit is used for calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
9. The panorama switching device according to claim 7, wherein the determining unit comprises:
a third calculation subunit, configured to calculate a dot product of the normal vector of the vertex and the normal vector of the face of the sky box model; and
and the first determination subunit is used for determining the surface of the sky box model where the vertex is located according to the dot multiplication result.
10. The panorama switching device of claim 6, wherein the setup module comprises:
and the third setting unit is used for setting the shuttle distance of the vertex, wherein the shuttle distance is the translation distance of the vertex in unit time.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN202110693968.7A 2021-06-22 2021-06-22 Panorama switching method and device, electronic equipment and storage medium Active CN113593046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110693968.7A CN113593046B (en) 2021-06-22 2021-06-22 Panorama switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110693968.7A CN113593046B (en) 2021-06-22 2021-06-22 Panorama switching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113593046A CN113593046A (en) 2021-11-02
CN113593046B true CN113593046B (en) 2024-03-01

Family

ID=78244278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693968.7A Active CN113593046B (en) 2021-06-22 2021-06-22 Panorama switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113593046B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693895B (en) * 2022-03-24 2023-03-03 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1558022A2 (en) * 2004-01-23 2005-07-27 Konica Minolta Photo Imaging, Inc. Image processing apparatus, method and program, image pickup apparatus and image data output method and program
US7084883B2 (en) * 1998-04-09 2006-08-01 Sony Computer Entertainment Inc. Image processing device, image processing method and program distribution medium and data distribution medium for processing images
WO2014043814A1 (en) * 2012-09-21 2014-03-27 Tamaggo Inc. Methods and apparatus for displaying and manipulating a panoramic image by tiles
CN106502396A (en) * 2016-10-20 2017-03-15 网易(杭州)网络有限公司 Virtual reality system, the exchange method based on virtual reality and device
CN110321048A (en) * 2018-03-30 2019-10-11 阿里巴巴集团控股有限公司 The processing of three-dimensional panorama scene information, exchange method and device
CN110579821A (en) * 2019-08-02 2019-12-17 佛山科学技术学院 small-range weather forecast system and method based on machine vision and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7084883B2 (en) * 1998-04-09 2006-08-01 Sony Computer Entertainment Inc. Image processing device, image processing method and program distribution medium and data distribution medium for processing images
EP1558022A2 (en) * 2004-01-23 2005-07-27 Konica Minolta Photo Imaging, Inc. Image processing apparatus, method and program, image pickup apparatus and image data output method and program
WO2014043814A1 (en) * 2012-09-21 2014-03-27 Tamaggo Inc. Methods and apparatus for displaying and manipulating a panoramic image by tiles
CN106502396A (en) * 2016-10-20 2017-03-15 网易(杭州)网络有限公司 Virtual reality system, the exchange method based on virtual reality and device
CN110321048A (en) * 2018-03-30 2019-10-11 阿里巴巴集团控股有限公司 The processing of three-dimensional panorama scene information, exchange method and device
CN110579821A (en) * 2019-08-02 2019-12-17 佛山科学技术学院 small-range weather forecast system and method based on machine vision and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
飞行模拟器视景系统中水域的研究与实现;奚海蛟;张晓林;;计算机仿真(第09期);全文 *

Also Published As

Publication number Publication date
CN113593046A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN114550177B (en) Image processing method, text recognition method and device
CN114792359B (en) Rendering network training and virtual object rendering method, device, equipment and medium
CN113920307A (en) Model training method, device, equipment, storage medium and image detection method
CN112634343A (en) Training method of image depth estimation model and processing method of image depth information
CN113705515B (en) Training of semantic segmentation model and generation method and device of high-precision map lane line
CN111047630A (en) Neural network and target detection and depth prediction method based on neural network
CN114842123A (en) Three-dimensional face reconstruction model training and three-dimensional face image generation method and device
EP4123595A2 (en) Method and apparatus of rectifying text image, training method and apparatus, electronic device, and medium
CN111797745A (en) Training and predicting method, device, equipment and medium of object detection model
CN114792355A (en) Virtual image generation method and device, electronic equipment and storage medium
CN113593046B (en) Panorama switching method and device, electronic equipment and storage medium
CN113393468A (en) Image processing method, model training device and electronic equipment
CN116385789B (en) Image processing method, training device, electronic equipment and storage medium
EP4318314A1 (en) Image acquisition model training method and apparatus, image detection method and apparatus, and device
CN115866229A (en) Method, apparatus, device and medium for converting view angle of multi-view image
CN114119990B (en) Method, apparatus and computer program product for image feature point matching
CN114581586A (en) Method and device for generating model substrate, electronic equipment and storage medium
CN115457365A (en) Model interpretation method and device, electronic equipment and storage medium
CN116129087A (en) Positioning method, visual map generation method and device thereof
CN114549728A (en) Training method of image processing model, image processing method, device and medium
CN115147306A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113344213A (en) Knowledge distillation method, knowledge distillation device, electronic equipment and computer readable storage medium
CN114820908B (en) Virtual image generation method and device, electronic equipment and storage medium
CN115761123B (en) Three-dimensional model processing method, three-dimensional model processing device, electronic equipment and storage medium
CN113838201B (en) Model adaptation method and device, electronic equipment and readable storage 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