CN113593046A - 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
CN113593046A
CN113593046A CN202110693968.7A CN202110693968A CN113593046A CN 113593046 A CN113593046 A CN 113593046A CN 202110693968 A CN202110693968 A CN 202110693968A CN 113593046 A CN113593046 A CN 113593046A
Authority
CN
China
Prior art keywords
vertex
box model
sky box
determining
normal vector
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.)
Granted
Application number
CN202110693968.7A
Other languages
Chinese (zh)
Other versions
CN113593046B (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

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The disclosure provides a panorama switching method, a panorama switching device, an electronic device and a storage medium, and relates to the technical field of artificial intelligence, in particular 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 opposite vertex of the sky box model where the vertex is located; and carrying out panorama switching based on the set sky box model. The panorama switching method disclosed by the invention carries out panorama switching by setting the moving speed of each vertex of the sky box model, so that the moving and deformation speeds of the nearby objects are high, and the moving and deformation speeds of the distant objects are relatively low, thereby achieving the effect of simulating light stream shuttling, enabling the switching of the panorama layer to be more natural, fitting the normal visual effect and further improving the visual effect during panorama switching.

Description

Panorama switching method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of image processing, intelligent transportation, and deep learning in the field of artificial intelligence technologies, and in particular, to a panorama switching method and apparatus, an electronic device, and a storage medium.
Background
In a map panoramic scene, when a panoramic image layer is switched, a shuttle visual effect of a panoramic ground and surrounding buildings is usually realized based on a sky box model.
In the related technology, when the panorama layer is switched, all vertexes of the sky box model are uniformly translated, so that the visual effect is poor when the panorama is switched.
Disclosure of Invention
The disclosure provides a panorama switching method, a panorama switching device, an electronic device 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 where the vertex is located facing the vertex; and carrying out panorama switching based on the set sky box model.
According to another aspect of the present disclosure, there is provided a panorama switching apparatus 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 carrying out panoramic switching on the basis of 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 a panorama switching method according to 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 a computer to perform a 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 statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a panorama switching method according to a first embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a panorama switching method according to a second embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a panorama switching method according to a third embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a panorama switching method according to a fourth embodiment of the present disclosure;
fig. 5 is a flowchart illustrating 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 apparatus according to a first embodiment of the present disclosure;
fig. 8 is a block diagram of a panorama switching apparatus according to a second embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device for implementing the panorama switching method of the embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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 and develops theories, methods, techniques and application systems for simulating, extending and expanding 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 that analyzes an Image with a computer to achieve a desired result. The image processing is to process the image information by using a computer to meet the visual psychology of people or the behavior of application requirements, has wide application, and is mainly used for mapping, atmospheric science, astronomy, beautifying, image identification improvement and the like.
An Intelligent Transportation System (ITS) is a comprehensive Transportation System which effectively and comprehensively applies advanced scientific technologies (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operational research, artificial intelligence and the like) to Transportation, service control and vehicle manufacturing, and strengthens the relation among vehicles, roads and users, thereby forming a comprehensive Transportation System which ensures safety, improves efficiency, improves environment and saves energy.
Deep Learning (DL) is a new research direction in the field of Machine Learning (ML), and learns the intrinsic rules and representation levels of sample data, and information obtained in the Learning process is helpful for interpreting data such as text, images, and sound. The final aim of the method is to enable the machine to have the analysis and learning capability like a human, and to recognize data such as characters, images and sounds. As for specific research content, the method mainly comprises a neural network system based on convolution operation, namely a convolution neural network; a multilayer neuron based self-coding neural network; and pre-training in a multilayer self-coding neural network mode, and further optimizing the deep confidence network of the neural network weight by combining the identification information. Deep learning has achieved many achievements in search technology, data mining, machine learning, machine translation, natural language processing, multimedia learning, speech, recommendation and personalization technologies, and other related fields.
The panorama switching method, apparatus, electronic device, and storage medium according to the 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 execution subject of the panorama switching method according to the embodiment of the present disclosure may be the panorama switching apparatus provided in the embodiment of the present disclosure, and the panorama switching apparatus may be a hardware device having a data information processing capability and/or necessary software for driving the hardware device to operate. Alternatively, the execution body may include a workstation, a server, a computer, a user terminal, and other devices. The user terminal includes, but is not limited to, a mobile phone, a computer, an intelligent voice interaction device, an intelligent household appliance, a vehicle-mounted terminal, and the like.
In the embodiment of the present disclosure, the sky box model is a pre-established cube, and can be obtained by rendering six faces of the cube. And determining the plane 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 plane of the 6 planes of the upper, lower, left, right, front and back planes of the sky box model each vertex of the sky box model is located. The vertexes in the embodiment of the present disclosure refer to pixel points on each side of the sky box model, rather than 8 vertexes of a cube corresponding to the sky box model.
And S102, setting according to the moving speed of the opposite vertex of the sky box model where the vertex is located.
Specifically, according to the surface of the sky box model where each vertex of the sky box model is located, which is determined in step S101, the moving speed of each vertex is set, so that the moving and deformation speed of a near object is high, and the moving and deformation speed of a far object is relatively low, thereby achieving the effect of simulating light stream shuttling, and making the switching of the panoramic image layer more natural and fitting with a normal visual effect.
Specifically, the setting of the moving speed of the vertex may include setting a shuttle distance of the vertex, where the shuttle distance is a translation distance of the vertex in unit time.
And S103, carrying out panoramic switching based on the set sky box model.
Specifically, switching of the panorama layer is performed based on the sky box model in which the moving speed of each vertex is set in step S102.
In summary, in the panorama switching method according to the embodiment of the present disclosure, the surface of the sky box model where each vertex of the sky box model is located is determined, the setting is performed according to the moving speed of the surface of the sky box model where the vertex is located to the vertex, and the panorama switching is performed based on the set sky box model. The panorama switching method of the embodiment of the disclosure performs panorama switching by setting the moving speed of each vertex of the sky box model, so that the moving and deformation speed of a near object is high, and the moving and deformation speed of a far object is relatively low, thereby achieving the effect of simulating light stream shuttling, making the switching of a panorama layer more natural, fitting a normal visual effect, and further improving the visual effect during panorama switching.
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 a normal vector of the vertex.
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.
And 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 vectors of the planes of the sky box model calculated in step S201.
And S203, setting according to the moving speed of the opposite vertex of the sky box model where the vertex is located.
And S204, carrying out panorama 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 embodiment described above, and are not described again here.
Further, as shown in fig. 3, based on the embodiment shown in fig. 2, the step S201 "calculating a normal vector of a 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 a point is equal to the sum of the normal vectors of all triangles whose vertices are the point, the normal vector of the point can be obtained from the normal vector of each triangle whose vertices are the point by calculating the normal vector of each triangle whose vertices are the point.
All the vertexes of the six surfaces of the sky box model form a set, a triangle formed by any three vertexes in the set is traversed, and the normal vector of each triangle is 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 vertices of a triangle are A, B, C, vectors a to B and vectors a to C can be obtained by subtracting coordinates of two vertices, respectively, the two vectors are cross-multiplied, and then normalized to make a norm of the vector 1, so as to obtain a normal vector of the triangle.
S302, calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
Specifically, the sum of the normal vectors of all triangles corresponding to the vertex is calculated according to the normal vector of each triangle calculated in step S301, so as to obtain the normal vector of the vertex.
Further, as shown in fig. 4, based on the embodiment shown in fig. 2, the step S202 "determining the plane of the sky box model where the vertex is located according to the normal vector of the vertex" may specifically include:
s401, a dot product of the normal vector of the vertex and the normal vector of the plane of the sky box model is calculated.
Specifically, the dot product results of the normal vector of the vertex and the normal vectors of the six surfaces of the sky box model obtained in step S201 are calculated. The norm vectors of the six faces of the sky box model may have a modulus of 1.
And S402, determining the surface of the sky box model where the vertex is located according to the dot product result.
Specifically, since the time point multiplication result of the two vectors perpendicular to each other is 0, the time point multiplication result of the two vectors (modulo 1) having an included angle of 0 ° is 1, and the time point multiplication result of the two vectors (modulo 1) having 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 point multiplication result calculated in step S401. For example, if the dot product result of the normal vector of the vertex and the normal vectors of the front, rear, left, and right 4 surfaces of the sky box model is 0, the dot product result of the normal vector of the vertex and the normal vector of the sky box model is 1, and the dot product result of the normal vector of the sky box model and the normal vector of the sky box model below the sky box model is-1, the surface of the sky box model where the vertex is located is determined to be the top surface of the sky box model.
Further, as shown in fig. 5, on the basis of the embodiment shown in fig. 2, the step S203 "setting according to the moving speed of the vertex facing the sky box model where the vertex is located" may specifically include:
s501, if the surface of the sky box model where the vertex is located is the left surface or the right surface, the moving speed of the vertex is set to be larger than the preset speed.
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 may be a preset shuttle distance of each surface in unit time. When the plane of the sky box model where the vertex is located is the left plane or the right plane, the movement speed of the vertex is set to be greater than the preset speed, for example, the movement speed of the vertex 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 where the coordinate in the vertical direction of the vertex is located; and determining the moving speed of the vertex according to the coordinate range.
Specifically, in order to enable the light stream shuttling effect to be more exquisite and vivid, the vertexes on the left surface and the right surface can be subjected to layered processing in the vertical direction (namely height), the coordinate ranges of the vertical direction of the left surface and the right surface of the sky box model 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 range where the coordinates in the vertical direction of the vertexes are located.
And S502, if the surface of the sky box model where the vertex is located is not the left surface and not the right surface, setting the moving speed of the vertex to be equal to the preset speed.
Specifically, when the plane of the sky box model where the vertex is located is not the left plane and is not the right plane, the moving speed of the vertex is set to be a preset speed.
In summary, in the panorama switching method according to the embodiment of the present disclosure, the surface of the sky box model where each vertex of the sky box model is located is determined, the setting is performed according to the moving speed of the surface of the sky box model where the vertex is located to the vertex, and the panorama switching is performed based on the set sky box model. The panorama switching method of the embodiment of the disclosure performs panorama switching by setting the moving speed of each vertex of the sky box model, so that the moving and deformation speed of a near object is high, and the moving and deformation speed of a far object is relatively low, thereby achieving the effect of simulating light stream shuttling, making the switching of a panorama layer more natural, fitting a normal visual effect, and further improving the visual effect during panorama switching. The moving speed of other surfaces except the left surface and the right surface is equal to the preset speed, the moving speed of the left surface and the right surface is set to be greater than the preset speed to simulate the light stream shuttling effect, and the moving speeds of vertexes with different heights of the left surface and the right surface are subjected to layered processing, so that the shuttling effect is more exquisite and 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 according to 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 the normal vector of the triangle.
S603, calculating the normal vector of the vertex according to the normal vector of the triangle corresponding to the vertex.
And S604, calculating a point multiplication result of the normal vector of the vertex and the surface of the sky box model.
And S605, determining the surface of the sky box model where the vertex is located according to the dot product result.
And S606, if the surface of the sky box model where the vertex is located is the left surface or the right surface, setting the moving speed of the vertex to be higher than the preset speed.
S607, if the surface of the sky box model where the vertex is located is not the left surface and not the right surface, setting the moving speed of the vertex 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 apparatus according to a first embodiment of the present disclosure.
As shown in fig. 7, a panorama switching apparatus 700 of an embodiment of the present disclosure includes: a determining module 701, a setting module 702, and a switching module 703.
A determining module 701, configured to determine a plane of the sky box model where each vertex of the sky box model is located.
A setting module 702, configured to set a moving speed of the vertex facing the sky box model where the vertex is located.
A switching module 703, configured to perform panorama switching based on the set sky box model.
It should be noted that the above explanation of the embodiment of the panorama switching method is also applicable to the panorama switching apparatus in the embodiment of the present disclosure, and the specific process is not described herein again.
In summary, the panorama switching apparatus according to the embodiment of the present disclosure determines a plane of the sky box model where each vertex of the sky box model is located, sets a moving speed of the vertex according to the plane of the sky box model where the vertex is located, and performs panorama switching based on the set sky box model. The panorama auto-change over device of the embodiment of the present disclosure switches the panorama through the moving speed that sets up each face summit of sky box model for near object removes and deformation speed is fast, and distant object removes and deformation speed is slower relatively, thereby reaches the effect that the simulation light stream shuttled back and forth, makes the switching on panorama picture layer more natural, and the normal visual effect of laminating, and then the visual effect when having improved the panorama and switching.
Fig. 8 is a block diagram of a panorama switching apparatus according to a second embodiment of the present disclosure.
As shown in fig. 8, a panorama switching apparatus 800 according to an embodiment of the present disclosure includes: a determination module 801, a setting module 802, and a switching module 803.
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 a 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 calculating unit 8011 may specifically include: the first calculating subunit 80111 is 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 from a normal vector of the triangle corresponding to the vertex.
Further, the determining unit 8012 may specifically include: a third computing subunit 80121 configured to compute a normal vector of a vertex and a point product of a plane of the sky box model; and a first determining subunit 80122, configured to determine, according to the dot product result, a plane 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 moving speed of a vertex to be greater than a preset speed if a plane of the sky box model where the vertex is located is a left plane or a right plane; the second setting unit 8022 is configured to set the moving speed of the vertex to be equal to the preset speed if the plane of the sky box model where the vertex is located is not the left plane and is not the right plane.
Further, the first setting unit 8021 may specifically include: a second determining subunit 80211, configured to determine a coordinate range in which the coordinate in the vertical direction of the vertex is located; the third determining subunit 80212 is configured to determine the moving speed of the vertex according to the coordinate range.
Further, the setting module 802 further includes: the third setting unit 8023 is configured to set a shuttle distance of the vertex, where the shuttle distance is a translation distance of the vertex in unit time.
In summary, the panorama switching apparatus according to the embodiment of the present disclosure determines a plane of the sky box model where each vertex of the sky box model is located, sets a moving speed of the vertex according to the plane of the sky box model where the vertex is located, and performs panorama switching based on the set sky box model. The panorama auto-change over device of the embodiment of the present disclosure switches the panorama through the moving speed that sets up each face summit of sky box model for near object removes and deformation speed is fast, and distant object removes and deformation speed is slower relatively, thereby reaches the effect that the simulation light stream shuttled back and forth, makes the switching on panorama picture layer more natural, and the normal visual effect of laminating, and then the visual effect when having improved the panorama and switching. The moving speed of other surfaces except the left surface and the right surface is equal to the preset speed, the moving speed of the left surface and the right surface is set to be greater than the preset speed to simulate the light stream shuttling effect, and the moving speeds of vertexes with different heights of the left surface and the right surface are subjected to layered processing, so that the shuttling effect is more exquisite and vivid.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 9 illustrates a schematic block diagram of an example electronic device 900 that can 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples 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, which can perform various appropriate actions and processes in accordance with 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 calculation unit 901, ROM902, and RAM903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
A number of components in the device 900 are connected to the I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, and 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, optical disk, or the like; and a communication unit 909 such as a network card, a modem, a wireless communication transceiver, and 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 telecommunication 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 the computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation 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 in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 900 via ROM902 and/or communications 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 circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 with a combined blockchain.
According to an embodiment of the present disclosure, there is also provided 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 understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A panorama switching method comprises the following steps:
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 vertex is located facing the vertex; and
and carrying out panoramic switching based on the set sky box model.
2. The panorama switching method of claim 1, wherein the determining a plane of the sky box model in which each vertex of the sky box model is located comprises:
calculating a 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 of claim 2 wherein said computing a normal vector to the vertex comprises:
traversing a triangle formed by any three vertexes of the sky box model, and calculating a 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 of claim 2 wherein said determining a plane of the sky box model in which the vertex is located from a normal vector of the vertex comprises:
calculating a point multiplication result of the normal vector of the vertex and the normal vector of the 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 product result.
5. The panorama switching method according to claim 1, wherein the setting according to a moving speed of the sky box model in which the vertex is located facing the vertex includes:
setting the moving speed of the vertex to be greater than a preset speed if the plane of the sky box model where the vertex is located is the left plane or the right plane;
and if the surface of the sky box model where the vertex is located is not the left surface and not the right surface, setting the moving speed of the vertex to be equal to the preset speed.
6. The panorama switching method of claim 5, wherein the setting of the moving speed of the vertex to be greater than a preset speed comprises:
determining a coordinate range where the coordinate in the vertical direction of the vertex is located;
and determining the moving speed of the vertex according to the coordinate range.
7. The panorama switching method of claim 1, wherein the setting of the moving speed of the vertex comprises:
setting a shuttle distance of the vertex, wherein the shuttle distance is a translation distance of the vertex in unit time.
8. A panorama switching apparatus, 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
and the switching module is used for carrying out panoramic switching on the basis of the set sky box model.
9. The panorama switching apparatus of claim 8, wherein the determining means 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 located according to the normal vector of the vertex.
10. The panorama switching apparatus of claim 9, wherein the computing unit comprises:
the first calculating subunit is used for traversing a triangle formed by any three vertexes of the sky box model and calculating a 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.
11. The panorama switching apparatus of claim 9, wherein the determining unit comprises:
a third calculation subunit configured to calculate a result of a point multiplication of a normal vector of the vertex and a normal vector of a face of the sky box model; and
and the first determining subunit is used for determining the surface of the sky box model where the vertex is located according to the dot product result.
12. The panorama switching apparatus of claim 8, wherein the setting module comprises:
a first setting unit, configured to set a moving speed of the vertex to be greater than a preset speed if a face of the sky box model where the vertex is located is a left face or a right face;
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 located is not the left surface and not the right surface.
13. The panorama switching apparatus of claim 12, wherein the first setting unit comprises:
the second determining subunit is used for determining the coordinate range in which the coordinate in the vertical direction of the vertex is located;
and the third determining subunit is used for determining the moving speed of the vertex according to the coordinate range.
14. The panorama switching apparatus of claim 8, wherein the setting module comprises:
and a third setting unit, configured to set a shuttle distance of the vertex, where the shuttle distance is a translation distance of the vertex in unit time.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
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 true CN113593046A (en) 2021-11-02
CN113593046B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693895A (en) * 2022-03-24 2022-07-01 北京城市网邻信息技术有限公司 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
奚海蛟;张晓林;: "飞行模拟器视景***中水域的研究与实现", 计算机仿真, no. 09 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN113593046B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN113920307A (en) Model training method, device, equipment, storage medium and image detection method
CN114550177B (en) Image processing method, text recognition method and device
CN114792359B (en) Rendering network training and virtual object rendering method, device, equipment and medium
US11967132B2 (en) Lane marking detecting method, apparatus, electronic device, storage medium, and vehicle
EP3916634A2 (en) Text recognition method and device, and electronic device
EP4124878A2 (en) Method and apparatus for calibrating lidar and positioning device and storage medium
CN113705515B (en) Training of semantic segmentation model and generation method and device of high-precision map lane line
CN114549710A (en) Virtual image generation method and device, electronic equipment and storage medium
CN114792355B (en) Virtual image generation method and device, electronic equipment and storage medium
EP4123595A2 (en) Method and apparatus of rectifying text image, training method and apparatus, electronic device, and medium
CN114612600A (en) Virtual image generation method and device, electronic equipment and storage medium
CN113393468A (en) Image processing method, model training device and electronic equipment
CN115170815A (en) Method, device and medium for processing visual task and training model
CN114549728A (en) Training method of image processing model, image processing method, device and medium
CN113593046B (en) Panorama switching method and device, electronic equipment and storage medium
CN114627239A (en) Bounding box generation method, device, equipment and storage medium
CN115880555B (en) Target detection method, model training method, device, equipment and medium
US20230169680A1 (en) Beijing *** netcom science technology co., ltd.
CN115866229A (en) Method, apparatus, device and medium for converting view angle of multi-view image
CN114581586A (en) Method and device for generating model substrate, electronic equipment and storage medium
CN115147306A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113362438A (en) Panorama rendering method, device, electronic apparatus, medium, and program
CN112614221A (en) High-precision map rendering method and device, electronic equipment and automatic driving vehicle
CN113838201B (en) Model adaptation method and device, electronic equipment and readable storage medium
CN113610992B (en) Bone driving coefficient determining 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