A method for switching picture fan-shaped display and related system

By dividing the image rotation ring into equal segments and expanding the ring selection queue, the problems of slow large-scale data processing speed and high resource consumption in the prior art are solved, and more efficient picture display and larger display number are achieved.

CN119045710BActive Publication Date: 2025-03-04NANJING WEIXIAOBAO INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411538063.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-04
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

In the prior art, when processing large-scale data, the method of displaying information through circular rotation results in slow processing speed, high resource consumption, and inability to effectively expand the number of displays.

Method used

By dividing the image rotation ring into equal ring pieces, the way to store the queue into the ring selection queue is determined according to the rotation direction, the ring selection queue is expanded, allowing more photos to be displayed.

Benefits of technology

This improves the processing speed of image rotation rings, reduces resource consumption, and extends the limit on the number of presentations, making the technology more efficient when processing large-scale data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045710B_ABST
    Figure CN119045710B_ABST
Patent Text Reader

Abstract

The invention discloses a picture fan-shaped display switching method and a related system, comprising an input unit, a storage queue unit, a picture rotating ring unit, a rotating unit, and a display. The picture rotating ring is constructed, and the ring selection queue is determined according to the picture rotating ring. If the clockwise rotation is determined as the positive direction, the index of the picture on the right side of the display surface in the ring selection queue is positive, and the index of the picture on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to the first-in-first-out order; when rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to the first-in-last-out order; each time the rotation is performed, the index value after the rotation and the way in which the storage queue enters the ring selection queue are determined according to the rotation direction. The invention has high processing speed and low resource consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a picture fan-shaped display switching method and a related system, belonging to the technical field of image processing. Background Art

[0002] In image display, by rotating the picture in a circular shape, it can be used to display various information such as text, images, and videos. In order to cooperate with this display solution, the existing technology uses image processing software or video processing software for processing, which is time-consuming and labor-intensive. In addition, since a circular rotation is required, only the required information is displayed, while in the existing solution, all data is uniformly rotated during rotation. This processing solution is feasible for cases where the data scale is relatively small. However, for cases where the data scale is relatively large (more than 100 pictures), the processing speed is slow and the resource consumption is high. Summary of the invention

[0003] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a method for switching fan-shaped display of pictures.

[0004] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:

[0005] A method for switching picture fan-shaped display, comprising the following steps:

[0006] Step S1, obtaining photos to be displayed.

[0007] Step S2, putting the photos to be displayed into a storage queue.

[0008] Step S3: construct a picture rotation ring and divide the picture rotation ring into Equally divided ring pieces, The ring selection queue is determined according to the image rotation ring. When switching, the equally divided ring slice with index 0 is determined as the display surface. If the clockwise rotation is the positive direction, the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out. When rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out.

[0009] Step S4, each time the rotation is performed, the index value after the rotation is determined according to the rotation direction, and the photo to be displayed with index 0 in the circular selection queue is determined to be displayed on the display surface. At the same time, the storage queue is determined to enter the circular selection queue according to the rotation direction.

[0010] Preferably, the method for determining the index in the ring selection queue is:

[0011] ;

[0012] in, Represents the index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates remainder.

[0013] Preferably: the size of the photos to be displayed in the circular selection queue on the display surface is:

[0014] ;

[0015] ;

[0016] in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed.

[0017] Optimum: Each time the rotation is performed, the rotation angle is .

[0018] Preferably: each time the ring is rotated, the rotation angle of the photo to be displayed in the ring selection queue is recorded.

[0019] Another object of the present invention is to provide a picture fan-shaped display switching system, comprising an input unit, a storage queue unit, a picture rotating ring unit, a rotating unit, and a display, wherein:

[0020] The input unit is used to obtain photos to be displayed.

[0021] The storage queue unit is used to put the photos to be displayed into the storage queue.

[0022] The picture rotating ring unit is used to store the picture rotating ring and divide the picture rotating ring into Equally divided ring pieces, The ring selection queue is determined according to the image rotation ring. When switching, the equally divided ring slice with index 0 is determined as the display surface. If the clockwise rotation is the positive direction, the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out. When rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out.

[0023] The rotation unit is used to determine the index value after rotation according to the rotation direction each time it rotates, determine that the photo to be displayed with index 0 in the circular selection queue is displayed on the display surface, and at the same time determine the way in which the storage queue enters the circular selection queue according to the rotation direction.

[0024] The display is used for displaying photos displayed on the display surface.

[0025] Preferably, the picture rotating ring unit includes an index determination module, and the index determination module determines the index by the following formula:

[0026] ;

[0027] in, Represents the index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates taking.

[0028] Preferably, the picture rotating ring unit includes a display surface picture size determination module, and the display surface picture size determination module determines the display surface picture size by the following formula:

[0029] ;

[0030] ;

[0031] in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed.

[0032] Another object of the present invention is to provide a computer system, comprising a memory and a processor, wherein the memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions to implement the picture fan display switching method.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] The present invention divides the image into a rotating ring The ring selection queue is determined according to the picture rotation ring. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out. When rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out. In this way, the storage queue can be well connected to the ring selection queue, and the ring selection queue can be expanded, that is, the number of photos that can be displayed by the picture rotation ring is not limited to the size of the picture rotation ring, so that the display number is not limited, so its processing speed is fast, resource consumption is low, and its application scenarios are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The present invention is a flowchart of a method for switching fan-shaped display of pictures according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0037] A method for switching between fan-shaped display of pictures, such as Figure 1 As shown, the following steps are included:

[0038] Step S1, obtaining photos to be displayed.

[0039] Step S2, putting the photos to be displayed into a storage queue.

[0040] Step S3: construct a picture rotation ring and divide the picture rotation ring into Equally divided ring pieces, In another embodiment, is 6. In another embodiment, The value is 12. The ring selection queue is determined according to the image rotation ring. When switching, the equally divided ring slice with index 0 is determined as the display surface. If the clockwise rotation is the positive direction, the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out. When rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out.

[0041] Each time you rotate, the rotation angle , Indicates the rotation angle.

[0042] Calculate the angle for each image ;in is the index, Indicates that the angle is calculated for each picture.

[0043] In order to better display the photos on the display surface, the size of the photos to be displayed in the circular selection queue on the display surface is:

[0044] ;

[0045] ;

[0046] in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed.

[0047] Since the present invention connects the storage queue to the ring selection queue to realize the expansion of the ring selection queue, the queue index in the ring selection queue needs to be designed to meet the entry and exit of the queue in the ring selection queue during the rotation display. The method for determining the index in the ring selection queue is:

[0048] ;

[0049] in, Represents the index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates remainder.

[0050] Step S4, each time the rotation is performed, the index value after the rotation is determined according to the rotation direction, and the photo to be displayed with index 0 in the circular selection queue is determined to be displayed on the display surface, and the way in which the storage queue enters the circular selection queue is determined according to the rotation direction. Each time the rotation is performed, the rotation angle of the photo to be displayed in the circular selection queue is recorded.

[0051] Step S5: display the image in a loop as it rotates.

[0052] In another embodiment, a picture fan-shaped display switching system is provided, including an input unit, a storage queue unit, a picture rotating ring unit, a rotating unit, and a display, wherein:

[0053] The input unit is used to obtain photos to be displayed.

[0054] The storage queue unit is used to put the photos to be displayed into the storage queue.

[0055] The picture rotating ring unit is used to store the picture rotating ring and divide the picture rotating ring into Equally divided ring pieces, The ring selection queue is determined according to the image rotation ring. When switching, the equally divided ring slice with index 0 is determined as the display surface. If the clockwise rotation is the positive direction, the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out. When rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out.

[0056] The picture rotation ring unit includes an index determination module, and the index determination module determines the index by the following formula:

[0057] ;

[0058] in, Represents the index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates taking.

[0059] The picture rotating ring unit includes a display surface picture size determination module, and the display surface picture size determination module determines the display surface picture size by the following formula:

[0060] ;

[0061] ;

[0062] in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed.

[0063] The rotation unit is used to determine the index value after rotation according to the rotation direction each time it rotates, determine that the photo to be displayed with index 0 in the circular selection queue is displayed on the display surface, and at the same time determine the way in which the storage queue enters the circular selection queue according to the rotation direction.

[0064] The display is used for displaying photos displayed on the display surface.

[0065] In another embodiment, a computer system is provided, including a memory and a processor, wherein the memory is used to store a computer program / instruction, and the processor is used to execute the computer program / instruction to implement the picture fan display switching method.

[0066] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for switching picture fan-shaped display, characterized in that: The following steps are involved: Step S1, obtaining photos to be displayed; Step S2, putting the photos to be displayed into a storage queue; Step S3: construct a picture rotation ring and divide the picture rotation ring into Equally divided ring pieces, ; Determine the ring selection queue according to the picture rotation ring. When switching, determine the equally divided ring slice with index 0 as the display surface. Set the clockwise rotation as the positive direction, then the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out; when rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out; The method for determining the index in the ring selection queue is: ; in, Represents an index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates remainder; The size of the photos to be displayed in the circular selection queue on the display surface is: ; in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed; Step S4, each time the rotation is performed, the index value after the rotation is determined according to the rotation direction, and the photo to be displayed with index 0 in the circular selection queue is determined to be displayed on the display surface. At the same time, the storage queue is determined to enter the circular selection queue according to the rotation direction.

2. The method for switching picture fan-shaped display according to claim 1, characterized in that: Each time you rotate, the rotation angle is .

3. The method for switching picture fan-shaped display according to claim 2, characterized in that: Each time the ring is rotated, the rotation angle of the photos to be displayed in the ring selection queue is recorded.

4. A picture fan-shaped display switching system, characterized in that: It includes an input unit, a storage queue unit, a picture rotation ring unit, a rotation unit, and a display, wherein: The input unit is used to obtain photos to be displayed; The storage queue unit is used to put the photos to be displayed into the storage queue; The picture rotating ring unit is used to store the picture rotating ring and divide the picture rotating ring into Equally divided ring pieces, ; Determine the ring selection queue according to the picture rotation ring. When switching, determine the equally divided ring slice with index 0 as the display surface. Set the clockwise rotation as the positive direction, then the image index on the right side of the display surface in the ring selection queue is positive, and the image index on the left side of the display surface in the ring selection queue is negative. When rotating clockwise, the storage queue enters the end of the sequence with a positive index in the ring selection queue according to first-in-first-out; when rotating counterclockwise, the storage queue enters the end of the sequence with a negative index in the ring selection queue according to first-in-last-out; The picture rotation ring unit includes an index determination module, and the index determination module determines the index by the following formula: ; in, Represents an index, The number of equally divided rings of the image rotation ring. Indicates that the current image in the circular selection queue has been rotated by an angle. It means taking; The picture rotating ring unit includes a display surface picture size determination module, and the display surface picture size determination module determines the display surface picture size by the following formula: ; in, Indicates the first The width of the picture to be displayed on the display surface, Indicates that the current image in the circular selection queue has been rotated by an angle. Indicates the remainder, Indicates the radius of the inner circle in the image rotation ring. Indicates the first The actual width of the photo to be displayed. Indicates the first The height of the picture to be displayed on the display surface, Indicates the first The actual height and width of the photo to be displayed; The rotation unit is used to determine the index value after rotation according to the rotation direction each time it rotates, determine that the photo to be displayed with index 0 in the circular selection queue is displayed on the display surface, and at the same time determine the way in which the storage queue enters the circular selection queue according to the rotation direction; The display is used for displaying photos displayed on the display surface.

5. A computer system, characterized in that: It comprises a memory and a processor, wherein the memory is used to store computer programs / instructions; and the processor is used to execute the computer programs / instructions to implement the picture fan-shaped display switching method described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method and system for circularly displaying groups of pictures in Android widescreen equipment

    CN107092655A