Method and device for switching images in virtual page, electronic equipment and storage medium

By fusing the current image and the image to be switched in the virtual page and adjusting the zoom size and transparency, the problem of the rigid image switching method in the prior art is solved and a smoother user experience is achieved.

CN118733181APending Publication Date: 2024-10-01CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410869589.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The image switching method in the existing virtual page is relatively rigid, especially when switching between dissimilar scenes, which has limitations, resulting in poor visual experience for users.

Method used

By fusing the current image and the image to be switched, a fused image is generated, and the scaled image size and transparency are adjusted according to the user's switching instructions, gradually covering the virtual page to achieve smooth image switching.

Benefits of technology

It improves the smoothness of the image switching process, improves the user's visual sense, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733181A_ABST
    Figure CN118733181A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of page switching, and discloses a switching method and device for images in a virtual page, electronic equipment and a storage medium, and the method comprises the steps: generating a fused image according to a current image and a to-be-switched image; generating a virtual page including the target area according to the current image and the fused image; wherein the initial image in the target area is the zoomed image to be switched; and if a switching instruction triggered by selecting the target area by the user is received, adjusting the size of the zoomed to-be-switched image until the zoomed to-be-switched image covers the virtual page. According to the method, the current image and the to-be-switched image are fused to obtain the fused image, the virtual page comprising the target area is generated according to the current image and the fused image, and the image in the target area is zoomed according to the corresponding switching instruction, so that the image gradually covers the virtual page, the image in the virtual page is smoothly switched, and the switching efficiency is improved. And the smoothness of the image switching process is ensured, so that the visual sense of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, electronic device and storage medium for switching images in a virtual page. Background Art

[0002] At present, the image switching method in the virtual page is relatively rigid, generally directly switching the current page to the page to be switched. The existing improvement method for image switching of similar scenes is generally a one-shot switching method, but the switching between dissimilar scenes cannot be switched smoothly, and there are certain scene limitations, resulting in a poor visual experience of image switching in the virtual page for users. Summary of the invention

[0003] In view of the above problems, the present application provides a method, device, electronic device and storage medium for switching images in a virtual page, which are used to smoothly switch images in a virtual page to improve the user's visual perception.

[0004] According to one aspect of the present application, a method for switching images in a virtual page is provided, the switching method comprising: generating a fused image based on a current image and an image to be switched; generating a virtual page including a target area based on the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched; if a switching instruction triggered by a user selecting the target area is received, adjusting the size of the scaled image to be switched until the scaled image to be switched covers the virtual page.

[0005] In an optional manner, the switching method also includes: if a switching instruction triggered by the user selecting an area outside the target area is received, the initial image is switched from the scaled image to be switched to the scaled current image, and the size of the scaled current image is adjusted until the scaled current image covers the virtual page.

[0006] In an optional manner, switching the initial image from the scaled image to be switched to the scaled current image further includes: adjusting the transparency coefficient of the initial image to a preset transparency coefficient so that the initial image switches from the scaled image to be switched to the scaled current image; wherein the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient; adjusting the size of the scaled current image until the scaled current image covers the virtual page further includes: adjusting the scaling coefficient of the scaled current image to a preset scaling coefficient so that the scaled current image covers the virtual page.

[0007] In an optional manner, the target area also includes the scaled current image placed below the scaled image to be switched; switching the initial image from the scaled image to be switched to the scaled current image further includes: moving the scaled current image up to the top layer, and moving the scaled image to be switched down to the bottom layer, so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein the transparency coefficients corresponding to the various layers are different, and the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is a preset transparency coefficient.

[0008] In an optional manner, generating a fused image based on the current image and the image to be switched further includes: determining fused texture information based on texture information of the current image and the image to be switched; determining fused color information based on color information of the current image and the image to be switched; and generating a fused image based on the fused texture information, the fused color information and preset scaling parameters.

[0009] In an optional manner, generating a fused image based on the fused texture information, the fused color information and a preset scaling parameter further includes: generating an initial fused image based on the fused texture information and the fused color information; scaling the initial fused image according to the preset scaling parameter to obtain a fused image; wherein the size of the fused image is smaller than the size of the current image.

[0010] In an optional manner, generating a virtual page including a target area based on the current image and the fused image further includes: scaling the current image to cover the virtual page, and detecting whether the target position in the scaled current image overlaps with the position in the fused image; wherein the target position is any position in the scaled current image; if yes, taking the target position as the position of the target area in the virtual page; if no, taking the target position as the position of the scaled current image in the virtual page.

[0011] According to another aspect of the present application, a device for switching images in a virtual page is provided, the switching device comprising: a fusion module, for generating a fused image based on a current image and an image to be switched; a generation module, for generating a virtual page including a target area based on the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched; and a scaling module, for adjusting the size of the scaled image to be switched, if a switching instruction triggered by a user selecting the target area is received, until the scaled image to be switched covers the virtual page.

[0012] According to one aspect of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned switching method is executed.

[0013] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned switching method.

[0014] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned switching method.

[0015] The present application obtains a fused image by fusing the current image and the image to be switched, generates a virtual page including a target area according to the current image and the fused image, and scales the image in the target area according to the corresponding switching instruction so that it gradually covers the virtual page, so as to smoothly switch the image in the virtual page, thereby ensuring the smoothness of the image switching process, improving the user's visual sense, and enhancing the user experience.

[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 It is a flowchart of a method for switching images in a virtual page shown in an exemplary embodiment of the present application.

[0019] Figure 2 It is a flowchart of virtual page generation shown in an exemplary embodiment of the present application.

[0020] Figure 3 It is a schematic diagram of an image switching process shown in an exemplary embodiment of the present application.

[0021] Figure 4 is based on Figure 1 The exemplary embodiment shown is a schematic flow chart of another method for switching images in a virtual page.

[0022] Figure 5 is based on Figure 4 The exemplary embodiment shown is a schematic flow chart of another method for switching images in a virtual page.

[0023] Figure 6 is based on Figure 1 The exemplary embodiment shown is a schematic flow chart of another method for switching images in a virtual page.

[0024] Figure 7 It is a schematic diagram of an application scenario of the method for switching images in a virtual page of the present application.

[0025] Figure 8 It is a structural schematic diagram of a device for switching images in a virtual page shown in an exemplary embodiment of the present application.

[0026] Fig. 9 It is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0030] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0031] The existing image switching method in the virtual page is relatively rigid, and has certain limitations due to different picture scenes, resulting in a poor visual experience of the user for the image switching in the virtual page.

[0032] To this end, one aspect of the present application provides a method for switching images in a virtual page. Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for switching images in a virtual page according to an exemplary embodiment of the present application. The switching method at least includes S110 to S130, which are described in detail as follows:

[0033] S110: Generate a fused image according to the current image and the image to be switched.

[0034] The current image is the image currently displayed on the virtual page, and the image to be switched is the image that the user expects the virtual page to display later.

[0035] The fused image is an image generated based on the relevant features of the current image and the image to be switched, and may be a picture that fuses the texture features and color features of the current image and the image to be switched.

[0036] Exemplarily, the fused texture information is determined based on the texture information of the current image and the image to be switched; the fused color information is determined based on the color information of the current image and the image to be switched; and the fused image is generated based on the fused texture information, the fused color information and the preset scaling parameter, wherein the preset scaling parameter is a parameter for adjusting the image size.

[0037] Texture information and color information can accurately represent the image in the virtual page to a certain extent, and there are differences in texture information and color information between different images.

[0038] Because the fused texture information is extracted from the texture information of the current image and the texture information of the image to be switched, it has a certain degree of similarity with the texture information of the current image and the texture information of the image to be switched. Similarly, the fused color information is also the same.

[0039] Furthermore, an initial fused image is generated according to the fused texture information and the fused color information; the initial fused image is scaled according to a preset scaling parameter to obtain a fused image; wherein the size of the fused image is smaller than the size of the current image.

[0040] For example, extract the uv information (texture information): A.uv, color information (color information): A.xyzw of the current image (A); and the uv information: B.uv, color information: B.xyzw of the image to be switched (B). Create a new texture C, and perform color sampling and fusion of A.xyzw and B.xyzw according to the preset parameter Alpha Lerp (preset transparency coefficient), where xyz is sampled for both, and the alpha component w is set as Aw = Alpha Lerp, Bw = (1-Alpha Lerp). According to the color sampling result, A and B are merged into a new color and given to C.color. Scale C.uv according to the Scale parameter (preset scaling parameter), and the rule is C.uv = C.uv*Scale to obtain a fused image.

[0041] S120: Generate a virtual page including a target area according to the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched.

[0042] The "zoom" in this application can be understood as the meaning of reducing and enlarging. The "zoom" in this application only represents the adjustment of the image size, and the specific operation is adaptively determined according to the actual situation.

[0043] See also Figure 2 , Figure 2 This is a flow chart of virtual page generation shown in an exemplary embodiment of the present application. In which, image A (current image) and image C (fused image) are fused to obtain a virtual page with A as the base image and including the image C area (target area). By default, the initial image in the C image area is the reduced-size image B (the image to be switched), and its size covers the entire image C area.

[0044] S130: If a switching instruction is received which is triggered by the user selecting a target area, the size of the scaled image to be switched is adjusted until the scaled image to be switched covers the virtual page.

[0045] For example, if the user clicks Figure 2 Any position of the image C area in the virtual page shown in FIG. 1 will trigger the generation of a corresponding switching instruction. When the execution subject of this embodiment receives the switching instruction, it will Figure 3 As shown, the size of the image C area is gradually enlarged until it covers the entire virtual page, that is, the initial image in the image C area covers the entire virtual page. Among them, image A is the underlying image, and image B is gradually enlarged from the size of the image C area to cover the entire virtual page. In this process, the switching between images is very dynamic, making the image switching smoother, thereby improving the user's visual perception.

[0046] This embodiment obtains a fused image by fusing the current image and the image to be switched, generates a virtual page including a target area according to the current image and the fused image, and scales the image in the target area according to the corresponding switching instruction so that it gradually covers the virtual page, so as to smoothly switch the image in the virtual page, thereby ensuring the smoothness of the image switching process, improving the user's visual sense, and enhancing the user experience.

[0047] In another exemplary embodiment of the present application, an image switching method in response to another switching instruction is described in detail. Figure 4 , Figure 4 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for switching images in a virtual page. Figure 1 The S110 to S130 shown above also include S410, which is described in detail as follows:

[0048] S410: If a switching instruction is received due to the user selecting an area outside the target area, the initial image is switched from the scaled image to be switched to the scaled current image, and the size of the scaled current image is adjusted until the scaled current image covers the virtual page.

[0049] like Figure 3 As shown, when the user clicks on the area where the base map A is located (the area outside the image C area), it will trigger the generation of a corresponding switching instruction. When the execution subject of this embodiment receives the switching instruction, it will switch the image in the image C area from image B to image A (that is, from the scaled image to be switched to the scaled current image), and gradually enlarge the size of the image C area until it covers the entire virtual page, so that the image A in the image C area covers the entire virtual page.

[0050] Exemplarily, the transparency coefficient of the initial image is adjusted to a preset transparency coefficient so that the initial image switches from the scaled image to be switched to the scaled current image; wherein the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient; the scaling coefficient of the scaled current image is adjusted to the preset scaling coefficient so that the scaled current image covers the virtual page.

[0051] For example, the transparency coefficient of the initial image changes in the interval [0, 1]. If it is 1, the image to be switched after scaling is fully displayed; if it is 0, the current image after scaling is fully displayed; if it is 0.5, the displayed image occupies half of the image features. Similarly, the closer the transparency coefficient of the initial image is to 1, the closer the displayed image is to the image to be switched after scaling, and the closer the transparency coefficient of the initial image is to 0, the closer the displayed image is to the current image after scaling.

[0052] In this embodiment, the transparency coefficient of the initial image can be adjusted to change its specific display content, and the area occupied by the initial image in the virtual page can be adjusted by the scaling coefficient, thereby adjusting the area occupied by the display content in the initial image in the virtual page.

[0053] The switching method shown in this embodiment is to stay at the current image, that is, there is no need to switch the image. In order to better reflect the dynamic switching process, the switching idea of ​​S130 is still used, and only the image in the target area is switched to the current image. During the switching process, the base image of the virtual page is the current image, and the image in the target area is also the current image. The image in the target area is dynamically enlarged to completely overlap with the base image to improve the user's visual perception.

[0054] In another exemplary embodiment of the present application, how to switch the initial image from the scaled image to be switched to the scaled current image is described in detail. Figure 5 , Figure 5 is based on Figure 4 The exemplary embodiment shown is a flow chart of another method for switching images in a virtual page. Figure 4 The S410 shown further includes S510; wherein the target area also includes the scaled current image placed below the scaled image to be switched, which is described in detail as follows:

[0055] S510: Move the scaled current image to the top layer, and move the scaled image to be switched to the bottom layer, so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein the transparency coefficients corresponding to the various layers are different, and the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient.

[0056] The top layer is the layer that displays the clearest image in the virtual page and is the layer that is most clearly visible to the user. Correspondingly, the bottom layer is the bottommost layer in the virtual page.

[0057] like Figure 2As shown, the image C region (target region) includes the scaled image A and image B, the transparency coefficient of A is Alpha Lerp, the transparency coefficient of B is 1-Alpha Lerp, and the sum of the transparency coefficients of the two is 1 (preset transparency coefficient). The execution subject of this embodiment can change the layer of the corresponding image by changing the transparency coefficient of the corresponding image. For example, the transparency coefficient 0 corresponds to the bottom layer, and the transparency coefficient 1 corresponds to the top layer. In the initial stage of the image C region, the transparency coefficient of the reduced-size image B is 1 (i.e., the corresponding image is fully displayed), and the transparency coefficient of the reduced-size image A is 0 (i.e., the corresponding image is not displayed at all).

[0058] In the corresponding image switching process, the transparency coefficient of the reduced-size image A is increased from 0 to 1, that is, it is moved to the top layer; the transparency coefficient of the corresponding image B is changed from 1 to 0, that is, it is moved to the bottom layer, so as to complete the layer transformation between the two images and dynamically complete the switching of the two displayed images to improve the user's visual experience.

[0059] In another exemplary embodiment of the present application, it is described in detail how to generate a virtual page including a target area according to the current image and the fused image. Figure 6 , Figure 6 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for switching images in a virtual page. Figure 1 The S120 shown further includes S610 to S630, which are described in detail as follows:

[0060] S610: Scale the current image to cover the virtual page, and detect whether a target position in the scaled current image overlaps with a position in the fused image; wherein the target position is any position in the scaled current image.

[0061] Exemplarily, the size of the current image is adjusted to the size of the virtual page so that the current image completely covers the virtual page. The execution body of this embodiment fully samples the texture information and color information of the current image and the fused image, and traverses each position in the scaled current image to determine the area overlapping with the fused image position, thereby determining the specific target area position.

[0062] S620: If yes, the target position is used as the position of the target area in the virtual page.

[0063] Exemplarily, if the target position overlaps with the position in the fused image, the target position is marked as the position in the target area, and the next position in the zoomed current image is traversed, and so on, to determine the target area in the virtual page based on the determined multiple marked positions.

[0064] S630: If not, the target position is used as the position of the current image after scaling in the virtual page.

[0065] Exemplarily, if the target position does not overlap with the position in the fused image, the next position in the scaled current image is traversed without marking it as a position in the target region.

[0066] This embodiment provides a method for generating a virtual page including a target area, and quickly determines the target area in the virtual page by means of detection and comparison.

[0067] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple switching methods are exemplarily described. Figure 7 , Figure 7 It is a schematic diagram of an application scenario of the method for switching images in a virtual page of the present application, wherein the user terminal 100, the virtual page 200 and the server 300 are included, and the three terminals can be connected by wireless communication, and the present application does not limit the connection method between them.

[0068] The user can perform relevant trigger operations on the virtual page 200 through the user terminal 100 to generate corresponding switching instructions. The virtual page 200 can forward the switching instructions to the server 300 so that the server 300 executes the corresponding image switching method. The server 300 can obtain the images, data, etc. in the virtual page 200 in real time to perform corresponding data processing and analysis.

[0069] The server 300 may be used as an execution subject of the switching method shown in any of the above exemplary embodiments to execute any of the above switching methods, which are exemplarily described as follows:

[0070] The server 300 generates a fused image based on the current image and the image to be switched; the server 300 generates a virtual page 200 including the target area based on the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched; if the server 300 receives a switching instruction triggered by a user selecting the target area, the server 300 adjusts the size of the scaled image to be switched until the scaled image to be switched covers the virtual page 200.

[0071] Among them, server 300 can be an independent physical server or a server cluster or distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. Server 300 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms, and there is no restriction on this here.

[0072] Another aspect of the present application also provides a device for switching images in a virtual page, such as Figure 8 As shown, Figure 8 800 is a schematic diagram of a switching device for images in a virtual page according to an exemplary embodiment of the present application. The switching device 800 includes:

[0073] The fusion module 810 is used to generate a fused image according to the current image and the image to be switched.

[0074] The generating module 830 is used to generate a virtual page including a target area according to the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched.

[0075] The scaling module 850 is configured to adjust the size of the scaled image to be switched, if a switching instruction is received, triggered by the user selecting a target area, until the scaled image to be switched covers the virtual page.

[0076] In another exemplary embodiment of the present application, the switching device 800 further includes:

[0077] The switching zoom module is used to switch the initial image from the scaled image to be switched to the scaled current image if a switching instruction is received when the user selects an area outside the target area, and adjust the size of the scaled current image until the scaled current image covers the virtual page.

[0078] In another exemplary embodiment of the present application, the switching zoom module further includes:

[0079] The transparency coefficient adjustment unit is used to adjust the transparency coefficient of the initial image to a preset transparency coefficient so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient.

[0080] The scaling unit is used to adjust the scaling factor of the scaled current image to a preset scaling factor so that the scaled current image covers the virtual page.

[0081] In another exemplary embodiment of the present application, the target area also includes a scaled current image placed below the scaled image to be switched; the switching zoom module further includes:

[0082] The layer adjustment unit is used to move the scaled current image to the top layer and move the scaled image to be switched to the bottom layer, so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein the transparency coefficients corresponding to each layer are different, and the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient.

[0083] In another exemplary embodiment of the present application, the fusion module 810 further includes:

[0084] The texture fusion unit is used to determine fusion texture information according to the texture information of the current image and the image to be switched.

[0085] The color fusion unit is used to determine fusion color information according to the color information of the current image and the image to be switched.

[0086] The fusion image unit is used to generate a fusion image according to the fusion texture information, the fusion color information and the preset scaling parameters.

[0087] In another exemplary embodiment of the present application, the fusion image unit further includes:

[0088] The initial fusion plate is used to generate an initial fused image based on fused texture information and fused color information.

[0089] The scaling plate is used to scale the initial fused image according to a preset scaling parameter to obtain a fused image; wherein the size of the fused image is smaller than the size of the current image.

[0090] In another exemplary embodiment of the present application, the generating module 830 further includes:

[0091] The detection unit is used to scale the current image to cover the virtual page, and detect whether the target position in the scaled current image overlaps with the position in the fused image; wherein the target position is any position in the scaled current image.

[0092] The determination unit is used to, if the answer is yes, use the target position as the position of the target area in the virtual page.

[0093] The filtering unit is used for, if the answer is no, taking the target position as the position of the current image after scaling in the virtual page.

[0094] The switching device of the present application obtains a fused image by fusing the current image and the image to be switched, generates a virtual page including a target area according to the current image and the fused image, and scales the image in the target area according to the corresponding switching instruction so that it gradually covers the virtual page, so as to smoothly switch the image in the virtual page, thereby ensuring the smoothness of the image switching process, improving the user's visual sense, and enhancing the user experience.

[0095] It should be noted that the switching device provided in the above embodiment and the switching method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0096] Another aspect of the present application also provides an electronic device, including: a controller; a memory for storing one or more programs, when the one or more programs are executed by a controller, to perform the above-mentioned switching method.

[0097] See also Fig. 9 , Fig. 9 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0098] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0099] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 to the random access memory (RAM) 903, such as executing the method in the above embodiment. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, ROM 902 and RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0100] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0101] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the system of the present application are executed.

[0102] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0103] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0105] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the switching method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0106] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the switching method provided in each of the above embodiments.

[0107] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0108] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0109] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for switching images in a virtual page, characterized in that: The switching method comprises: Generate a fused image according to the current image and the image to be switched; Generate a virtual page including a target area according to the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched; If a switching instruction triggered by a user selecting the target area is received, the size of the scaled image to be switched is adjusted until the scaled image to be switched covers the virtual page.

2. The switching method according to claim 1, characterized in that: The switching method further includes: If a switching instruction is received when the user selects an area outside the target area, the initial image is switched from the scaled image to be switched to the scaled current image, and the size of the scaled current image is adjusted until the scaled current image covers the virtual page.

3. The switching method according to claim 2, characterized in that: The step of switching the initial image from the scaled image to be switched to the scaled current image further comprises: Adjusting the transparency coefficient of the initial image to a preset transparency coefficient so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient; The step of adjusting the size of the scaled current image until the scaled current image covers the virtual page further comprises: The scaling factor of the scaled current image is adjusted to a preset scaling factor so that the scaled current image covers the virtual page.

4. The switching method according to claim 2, characterized in that: The target area also includes the scaled current image placed below the scaled image to be switched; The step of switching the initial image from the scaled image to be switched to the scaled current image further comprises: The scaled current image is moved up to the top layer, and the scaled image to be switched is moved down to the bottom layer, so that the initial image is switched from the scaled image to be switched to the scaled current image; wherein, the transparency coefficients corresponding to each layer are different, and the sum of the transparency coefficients of the scaled current image and the scaled image to be switched is the preset transparency coefficient.

5. The switching method according to claim 1, characterized in that: The step of generating a fused image according to the current image and the image to be switched further comprises: Determine fusion texture information according to texture information of the current image and the image to be switched; Determining fusion color information according to color information of the current image and the image to be switched; A fused image is generated according to the fused texture information, the fused color information and a preset scaling parameter.

6. The switching method according to claim 5, characterized in that: The generating a fused image according to the fused texture information, the fused color information and the preset scaling parameter further comprises: generating an initial fused image according to the fused texture information and the fused color information; The initial fused image is scaled according to a preset scaling parameter to obtain a fused image; wherein the size of the fused image is smaller than the size of the current image.

7. The switching method according to any one of claims 1 to 6, characterized in that: The step of generating a virtual page including a target area according to the current image and the fused image further comprises: Scaling the current image to cover the virtual page, and detecting whether a target position in the scaled current image overlaps with a position in the fused image; wherein the target position is any position in the scaled current image; If yes, the target position is used as the position of the target area in the virtual page; If not, the target position is used as the position of the scaled current image in the virtual page.

8. A device for switching images in a virtual page, characterized in that: The switching device comprises: A fusion module, used for generating a fused image according to the current image and the image to be switched; A generating module, configured to generate a virtual page including a target area according to the current image and the fused image; wherein the initial image in the target area is the scaled image to be switched; The scaling module is configured to adjust the size of the scaled image to be switched, if a switching instruction is received, when the switching instruction is triggered by the user selecting the target area, until the scaled image to be switched covers the virtual page.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by the controller, enables the controller to implement the switching method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the switching method according to any one of claims 1 to 7.