A method, apparatus and device for screen display

By displaying the first and second sub-screens of the package to be detected on the client display interface, and using the target zoom ratio and target image output speed for screen processing, the problem of stuttering and delay in the security check scene is solved, and smooth and real-time image output is achieved, improving the efficiency of image determination.

CN119718530BActive Publication Date: 2025-05-27HANGZHOU RAYIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510244809.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-05-27
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

In security check scenarios, it is difficult for the prior art to achieve smooth picture output and real-time picture output of the package to be detected, resulting in large delays in the picture output and affecting the efficiency of the picture judgment.

Method used

By displaying the first sub-screen and the second sub-screen to be detected on the client display interface, the original screen is scaled using the target zoom ratio to obtain the first sub-screen, and the second sub-screen is determined based on the target image output speed, so as to realize picture splicing and real-time update.

Benefits of technology

The problem of stuttering pictures is solved, and the smoothness and timeliness of pictures are improved, so that the difference between the pictures collected by the client and the pictures collected by the security inspection equipment does not exceed the preset time, reducing the time delay difference and improving the efficiency of the picture judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718530B_ABST
    Figure CN119718530B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus and device for screen display. The method includes: when updating the displayed screen of a package to be detected each time, obtaining a screen to be displayed corresponding to the package to be detected, the screen to be displayed including a first sub-screen and a second sub-screen; wherein, if the target zoom ratio of the package to be detected increases, selecting first sub-data corresponding to the displayed screen from the image data, generating an original screen based on the first sub-data, and scaling the original screen based on the target zoom ratio to obtain the first sub-screen; if the target zoom ratio remains unchanged, the first sub-screen is the displayed screen; wherein, selecting second sub-data from the image data based on the target image output speed, and generating a second sub-screen based on the second sub-data; displaying the first sub-screen and the second sub-screen through a display interface. Through the technical solution of the present application, smooth image output and image output timeliness are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of security inspection technologies, and particularly to a method, device, and equipment for displaying images. Background Art

[0002] In security inspection scenarios such as logistics, subways, and airports, multiple security inspection devices (such as security scanners) can be deployed. After placing the package to be inspected on the security inspection device, the security inspection device can collect image data of the package to be inspected and send the image data of the package to be inspected to the client. The client generates an original image based on the image data of the package to be inspected and displays the original image on the display interface, so that the staff can view the original image displayed on the display interface and then analyze whether there are any abnormalities in the package to be inspected. Summary of the Invention

[0003] This application provides a method for displaying images, which is applied to a client. Image data of a package to be inspected is stored in a specified storage medium of the client. The method includes:

[0004] Each time the displayed image of the package to be inspected displayed on the display interface is updated, obtain a to-be-displayed image corresponding to the package to be inspected. The to-be-displayed image includes a first sub-image and a second sub-image. Wherein, if the target zoom ratio of the package to be inspected increases, select first sub-data corresponding to the displayed image from the image data, generate an original image based on the first sub-data, and scale the original image based on the target zoom ratio to obtain the first sub-image. If the target zoom ratio remains unchanged, the first sub-image is the displayed image. Wherein, select second sub-data from the image data based on the obtained target image output speed, and generate the second sub-image based on the second sub-data. The target image output speed indicates the pixel width of the horizontal movement corresponding to the second sub-image.

[0005] Display the first sub-image and the second sub-image through the display interface;

[0006] Wherein, the second sub-image is spliced behind the first sub-image.

[0007] This application provides a device for displaying images, which is applied to a client. Image data of a package to be inspected is stored in a specified storage medium of the client. The device includes:

[0008] A processing module, configured to obtain a to-be-displayed screen corresponding to the to-be-detected package each time the displayed screen of the to-be-detected package displayed on the display interface is updated, where the to-be-displayed screen includes a first sub-screen and a second sub-screen; wherein, when obtaining the first sub-screen, if the target zoom ratio of the to-be-detected package increases, select first sub-data corresponding to the displayed screen from the image data, generate an original screen based on the first sub-data, and scale the original screen based on the target zoom ratio to obtain the first sub-screen; if the target zoom ratio remains unchanged, the first sub-screen is the displayed screen; wherein, when obtaining the second sub-screen, select second sub-data from the image data based on the obtained target image output speed, and generate the second sub-screen based on the second sub-data, where the target image output speed indicates the pixel width of the horizontal movement corresponding to the second sub-screen.

[0009] A display module, configured to display the first sub-screen and the second sub-screen through the display interface;

[0010] Wherein, the second sub-screen is spliced behind the first sub-screen.

[0011] This application provides an electronic device, including: a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is configured to execute the machine-executable instructions to implement the screen display method in the above example.

[0012] This application provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the screen display method in the above example is implemented.

[0013] This application provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by a processor; wherein, the processor is configured to execute the machine-executable instructions, and when executing the machine-executable instructions, implement the screen display method in the above example.

[0014] As can be seen from the above technical solutions, in the embodiments of the present application, the first sub-screen and the second sub-screen corresponding to the package to be detected can be displayed through the display interface, improving the screen display effect, ensuring a good display of the package to be detected, facilitating the staff to view the first sub-screen and the second sub-screen displayed on the display interface, and then analyzing whether there is an abnormality in the package to be detected, realizing remote real-time image judgment. The first sub-screen is obtained by scaling the original screen through target scaling and the first sub-screen is displayed on the display interface, which can ensure the smooth image output of the package to be detected, solve the problem of image output jamming, and improve the smoothness of image output. The second sub-screen is determined based on the target image output speed and the second sub-screen is displayed on the display interface, which can ensure the real-time image output of the package to be detected, ensure the timeliness of image output, make the difference between the image displayed on the client and the image collected by the security inspection device not exceed the preset time (such as 0.3 s), and reduce the time delay difference between the client and the security inspection device. Description of the Drawings

[0015] Figure 1 is a schematic flowchart of the screen display method in an embodiment of the present application;

[0016] Figure 2 is a schematic diagram of the display interface of the client in an embodiment of the present application;

[0017] Figure 3 is a schematic diagram of the display interface showing the pre- and post-cropped screens in an embodiment of the present application;

[0018] Figure 4 is a schematic flowchart of the screen display method in an embodiment of the present application;

[0019] Figure 5 is a schematic diagram of updating the target starting coordinates in an embodiment of the present application;

[0020] Figure 6 is a schematic flowchart of the screen display method in an embodiment of the present application;

[0021] Figure 7 is a schematic flowchart of the screen display method in an embodiment of the present application;

[0022] Figure 8A is a schematic flowchart of the screen display method in an embodiment of the present application;

[0023] Figure 8B is a schematic diagram of the real-time movement of the package to be detected in an embodiment of the present application;

[0024] Figure 9A is a schematic structural diagram of the screen display device in an embodiment of the present application;

[0025] Figure 9B It is a hardware structure diagram of an electronic device in an implementation manner of the present application. Specific implementation manner

[0026] In an embodiment of the present application, a screen display method is proposed. This method can be applied to an electronic device, which can be a client for example. Image data of a package to be detected is stored in a specified storage medium of the client. Refer to Figure 1 As shown, it is a schematic flowchart of the screen display method. This method may include:

[0027] Step 101: When updating the displayed screen of the package to be detected shown on the display interface each time, obtain the screen to be displayed corresponding to the package to be detected. The screen to be displayed includes a first sub-screen and a second sub-screen. Among them, if the target zoom ratio of the package to be detected increases, select the first sub-data corresponding to the displayed screen from the image data of the package to be detected, generate an original screen based on the first sub-data, and scale the original screen based on the target zoom ratio to obtain the first sub-screen; if the target zoom ratio remains unchanged, the first sub-screen is the displayed screen; among them, select the second sub-data from the image data of the package to be detected based on the obtained target image output speed, and generate a second sub-screen based on the second sub-data. The target image output speed is used to indicate the pixel width of the horizontal movement corresponding to the second sub-screen.

[0028] Step 102: Display the first sub-screen and the second sub-screen through the display interface; among them, when displaying the first sub-screen and the second sub-screen, the second sub-screen is spliced behind the first sub-screen.

[0029] Exemplarily, the display interface of the client may include a main perspective display area and an overhead perspective display area. Displaying the first sub-screen and the second sub-screen through the display interface may include, but is not limited to: displaying the first sub-screen from the main perspective and the second sub-screen from the main perspective through the main perspective display area; displaying the first sub-screen from the overhead perspective and the second sub-screen from the overhead perspective through the overhead perspective display area. Among them, the image data of the package to be detected may include main perspective image data and overhead perspective image data. The main perspective image data can be used to obtain the first sub-screen from the main perspective and the second sub-screen from the main perspective, and the overhead perspective image data can be used to obtain the first sub-screen from the overhead perspective and the second sub-screen from the overhead perspective.

[0030] Exemplarily, the process of obtaining the target scaling ratio of the package to be detected may include, but is not limited to: when updating the displayed screen of the package to be detected each time, determining whether there is a new data shard of the package to be detected in the specified storage medium; wherein, the image data of the package to be detected includes multiple data shards, and the security inspection device sequentially sends each data shard to the client, and the client sequentially stores each data shard in the specified storage medium. If not, the stored scaling ratio is used as the target scaling ratio. And / or, if so, the target cropping value is determined based on the cropping value of the newly added data shard and the cropping values of the stored data shards, and the package display height is determined based on the target cropping value; the initial scaling ratio is determined based on the package display height and the height of the viewing area of the display interface; the target scaling ratio is determined based on the initial scaling ratio.

[0031] After obtaining the target scaling ratio (such as using the stored scaling ratio as the target scaling ratio, or determining the target scaling ratio based on the initial scaling ratio), the target scaling ratio can be compared with the stored scaling ratio.

[0032] If the target scaling ratio is greater than the stored scaling ratio, that is, the target scaling ratio increases, in step 101, the first sub-data corresponding to the displayed screen needs to be selected from the image data of the package to be detected, and the first sub-screen is obtained based on the first sub-data. In this case, the target scaling ratio needs to be stored, that is, this target scaling ratio is used as the stored scaling ratio (when updating the displayed screen of the package to be detected next time, the stored scaling ratio is this target scaling ratio), replacing the currently stored scaling ratio.

[0033] If the target scaling ratio is equal to the stored scaling ratio, that is, the target scaling ratio remains unchanged, in step 101, the first sub-screen is the displayed screen, that is, the displayed screen is not scaled. In this case, the stored scaling ratio can be kept unchanged, so there is no need to replace the currently stored scaling ratio. Or, the target scaling ratio can also be stored, that is, this target scaling ratio is used as the stored scaling ratio.

[0034] Exemplarily, determining the target cropping value based on the cropping value of the newly added data shard and the cropping values of the stored data shards may include, but is not limited to: selecting the minimum upper cropping start value from the upper cropping start value of the newly added data shard and the upper cropping start values of the stored data shards, selecting the maximum lower cropping start value from the lower cropping start value of the newly added data shard and the lower cropping start values of the stored data shards, and determining the minimum upper cropping start value and the maximum lower cropping start value as the target cropping value, that is, the target cropping value includes the minimum upper cropping start value and the maximum lower cropping start value.

[0035] Exemplarily, determining the package display height based on the target cropping value may include, but is not limited to: determining the package display height based on the actual height of the package for data sharding, the minimum upper cropping start value, and the maximum lower cropping start value; wherein, the actual height of the package may represent the height of the image collected by the security inspection device, and the package display height may represent the height of the image displayed in the viewing area.

[0036] Exemplarily, determining the initial scaling ratio based on the package display height and the height of the viewing area of the display interface may include, but is not limited to: calculating the ratio value between the height of the viewing area of the display interface and the package display height; if the ratio value is less than 1, the initial scaling ratio may be determined as the ratio value; or, if the ratio value is not less than 1, the initial scaling ratio may be determined as 1.

[0037] Exemplarily, determining the target scaling ratio based on the initial scaling ratio may include, but is not limited to: calculating the first product value of the frame interval parameter, the initial scaling ratio, and the obtained package recommended speed, and rounding down the first product value to obtain the initial image output speed; wherein, the package recommended speed may be used to indicate the pixel width of horizontal movement. Wherein, if the second product value between the initial scaling ratio and the package recommended speed is greater than 1, the frame interval parameter may be 1; if the second product value is less than 1, the frame interval parameter may be greater than 1, and the frame interval parameter is used to make the first product value greater than or equal to 1.

[0038] If the frame interval parameter is 1 and the initial image output speed is greater than or equal to 1, the target scaling ratio may be determined based on the quotient of the initial image output speed and the package recommended speed; if the frame interval parameter is greater than 1, and / or, the initial image output speed is less than 1, the target scaling ratio may be determined as the initial scaling ratio.

[0039] Exemplarily, displaying the first sub - picture and the second sub - picture through the display interface may include, but is not limited to: starting from the target starting coordinate of the display interface, sequentially displaying the first sub - picture and the second sub - picture, where the target starting coordinate is determined based on the current end coordinate and the target scaling ratio, and the current end coordinate represents the end coordinate when the picture of the package to be detected was displayed last time. Wherein, if the target scaling ratio remains unchanged, the target starting coordinate remains unchanged; and / or, if the target scaling ratio increases, based on the current end coordinate, the target scaling ratio, and the stored scaling ratio, determine the pixel width of the interval between the target starting coordinate and the current end coordinate of the package to be detected, and determine the target starting coordinate based on the pixel width of the interval and the current end coordinate.

[0040] Exemplarily, the process of obtaining the target image output speed may include, but is not limited to: determining the width of the unshown pixels corresponding to the package to be detected; wherein, each time a data shard of the package to be detected is newly added to the specified storage medium, the width of the unshown pixels is increased based on the pixel width of the data shard; and each time a second sub-data is selected from the image data based on the target image output speed, the width of the unshown pixels is decreased based on the pixel width of the horizontal movement indicated by the target image output speed. If the width of the unshown pixels is greater than the pixel width of the data shard and the package to be detected is not shown on the display interface for the first time, then it is determined whether the width of the unshown pixels is not greater than the product value between the obtained initial image output speed and the configured maximum time interval.

[0041] If so, determine the stored image output speed as the target image output speed and store the target image output speed; and / or, if not, determine the initial image output speed as the target image output speed and store the target image output speed.

[0042] Exemplarily, the process of obtaining the target image output speed may include, but is not limited to: if the width of the unshown pixels is not greater than the pixel width of the data shard and the stored image output speed is not 0, then determine the stored image output speed as the target image output speed and store the target image output speed.

[0043] And / or, if the stored image output speed is 0, then determine whether the frame interval is greater than the fixed number of frames; wherein the fixed number of frames is determined based on the quotient of the pixel width of the data shard and the obtained package recommendation speed.

[0044] If not, increment the frame interval by 1, determine the target image output speed to be 0, and store the target image output speed, with the initial value of the frame interval being 0; and / or, if so, determine the initial image output speed as the target image output speed, store the target image output speed, and update the frame interval to 0.

[0045] Exemplarily, when the package to be detected is shown on the display interface for the first time, a third sub-screen corresponding to the package to be detected may be obtained and the third sub-screen may be shown through the display interface. Among them, a third sub-data is selected from the image data stored in the specified storage medium based on the obtained target image output speed, and the third sub-screen is generated based on the third sub-data. Among them, the process of obtaining the target image output speed may include, but is not limited to:

[0046] Determine the width of the unshown pixels corresponding to the package to be detected; if the width of the unshown pixels is greater than the pixel width of the data shard, then determine whether the width of the unshown pixels is greater than the product value between the obtained initial image output speed and the configured maximum time interval; if not, determine the initial image output speed as the target image output speed and store the target image output speed; and / or, if so, determine the target image output speed based on the initial image output speed and the configured target value and store the target image output speed; the target image output speed is greater than the initial image output speed.

[0047] As can be seen from the above technical solutions, in the embodiments of the present application, the first sub-screen and the second sub-screen corresponding to the package to be detected can be displayed on the display interface, improving the screen display effect, ensuring a good display of the package to be detected, facilitating the staff to view the first sub-screen and the second sub-screen displayed on the display interface, and then analyzing whether there is an abnormality in the package to be detected, realizing remote real-time image judgment. The first sub-screen is obtained by zooming the original screen through target zooming and the first sub-screen is displayed on the display interface, which can ensure the smooth image output of the package to be detected, solve the problem of image output jamming, and improve the smoothness of image output. The second sub-screen is determined based on the target image output speed and the second sub-screen is displayed on the display interface, which can ensure the real-time image output of the package to be detected, ensure the timeliness of image output, make the difference between the image displayed on the client and the image collected by the security inspection device not exceed the preset time (such as 0.3 s), and reduce the time delay difference between the client and the security inspection device.

[0048] The above technical solutions of the embodiments of the present application will be described below in combination with specific application scenarios.

[0049] In security inspection scenarios such as logistics, subways, and airports, multiple security inspection devices (such as security inspection machines) and clients (which can also be called image judgment clients) can be deployed. The client is used to receive the image data of the package to be detected. The client can be a PC, a laptop, etc., and the type of this client is not limited.

[0050] The security inspection device can include a conveying device and a collecting device. The package to be detected can be placed on the conveying device, and the package to be detected is transported through the conveying device. During the transportation of the package to be detected, the collecting device collects the image data of the package to be detected. In this way, after obtaining the image data of the package to be detected, the security inspection device can send the image data of the package to be detected to the client.

[0051] After receiving the image data of the package to be detected, the client can store the image data of the package to be detected in a specified storage medium (i.e., the carrier for storing data, such as memory, hard disk, etc.). In this way, the client can read the image data of the package to be detected from the specified storage medium, generate the original screen based on the image data of the package to be detected, and display the original screen on the display interface of the client, so that the staff can view the original screen displayed on the display interface and then analyze whether there is an abnormality in the package to be detected.

[0052] Exemplarily, the number of clients can be at least one. For each client, the client can correspond to multiple security inspection devices at the same time. Based on this, multiple security inspection devices can send image data of the package to be detected to the same client. In this case, the same client can uniformly display and dispose of the packages to be detected by multiple security inspection devices, improving the image judgment efficiency of the packages to be detected and optimizing the processing flow of security inspection data. Or, the client can also correspond to a single security inspection device. Based on this, a security inspection device sends image data of the package to be detected to a client.

[0053] Exemplarily, when collecting the image data of the package to be detected, the image data of the package to be detected can be sliced, that is, the package to be detected is cut into several package parts. The security inspection device collects data slices of each package part through the collection device, and the data slices of all package parts together form the image data of the package to be detected. That is, the image data of the package to be detected includes multiple data slices.

[0054] For example, the package to be detected is cut into package part 1, package part 2, and package part 3. When the package to be detected is transported through the transport device, when package part 1 is within the field of view of the collection device, data slice 1 for package part 1 is collected through the collection device. The security inspection device sends data slice 1 to the client, and the client stores data slice 1 in the specified storage medium. When package part 2 is within the field of view of the collection device, data slice 2 for package part 2 is collected through the collection device. Data slice 2 is sent to the client, and the client stores data slice 2 in the specified storage medium. When package part 3 is within the field of view of the collection device, data slice 3 for package part 3 is collected through the collection device. Data slice 3 is sent to the client, and the client stores data slice 3 in the specified storage medium.

[0055] In summary, the security inspection device sequentially sends data slice 1, data slice 2, and data slice 3 to the client, and the client sequentially stores data slice 1, data slice 2, and data slice 3.

[0056] Exemplarily, when data shard 1 has been stored in the specified storage medium, without waiting for data shards 2 and 3, the client directly reads data shard 1 from the specified storage medium, generates sub - picture 1 based on data shard 1, and displays sub - picture 1 on the display interface, thereby reducing the waiting time for data shards and quickly displaying the complete picture of the package to be detected on the display interface. When data shard 2 has been stored in the specified storage medium, the client reads data shard 2 from the specified storage medium, generates sub - picture 2 based on data shard 2, and displays sub - picture 2 on the display interface. When data shard 3 has been stored in the specified storage medium, the client reads data shard 3 from the specified storage medium, generates sub - picture 3 based on data shard 3, and displays sub - picture 3 on the display interface. At this point, the complete picture of the package to be detected can be displayed on the display interface, and the complete picture of the package to be detected may include sub - picture 1, sub - picture 2, and sub - picture 3.

[0057] Exemplarily, when collecting the image data of the package to be detected, the security inspection device can collect the main - perspective image data of the package to be detected through the collection device and collect the top - perspective image data of the package to be detected through the collection device. For example, the main - perspective image data can be the image data of the main - perspective of the package to be detected, and the top - perspective image data can be the image data of the top - perspective of the package to be detected.

[0058] For example, when transporting the package to be detected through the conveyor device, when package part 1 is within the field of view of the collection device, the collection device collects the main - perspective data shard 11 and the top - perspective data shard 12 for package part 1, and the security inspection device sends the main - perspective data shard 11 and the top - perspective data shard 12 to the client, and the client stores data shard 11 and data shard 12 in the specified storage medium. When package part 2 is within the field of view of the collection device, the collection device collects the main - perspective data shard 21 and the top - perspective data shard 22 for package part 2, and the security inspection device sends the main - perspective data shard 21 and the top - perspective data shard 22 to the client, and the client stores data shard 21 and data shard 22 in the specified storage medium. When package part 3 is within the field of view of the collection device, the collection device collects the main - perspective data shard 31 and the top - perspective data shard 32 for package part 3, and the security inspection device sends the main - perspective data shard 31 and the top - perspective data shard 32 to the client, and the client stores data shard 31 and data shard 32 in the specified storage medium. Data shards 11, 21, and 31 constitute the main - perspective image data of the package to be detected, and data shards 12, 22, and 32 constitute the top - perspective image data of the package to be detected.

[0059] Exemplarily, the display interface of the client can include a main perspective display area (referred to as the main perspective display zone) and an overhead perspective display area (referred to as the overhead perspective display zone), see Figure 2 As shown, it is a schematic diagram of the display interface of the client. The title bar is used to display the current application name, file name, etc., and the information / button bar is used to display information and / or buttons. The content of the title bar and the information / button bar is not limited.

[0060] The main perspective display area is used to display the main perspective screen corresponding to the main perspective image data (i.e., the main perspective screen of the package to be detected, Figure 2 where the main perspective represents the main perspective screen), and the overhead perspective display area is used to display the overhead perspective screen corresponding to the overhead perspective image data (i.e., the overhead perspective screen of the package to be detected).

[0061] For example, when data shard 11 and data shard 12 are already stored in the specified storage medium, the client generates sub-screen 11 based on data shard 11 and displays sub-screen 11 in the main perspective display area. The client generates sub-screen 12 based on data shard 12 and displays sub-screen 12 in the overhead perspective display area. When data shard 21 and data shard 22 are already stored in the specified storage medium, the client generates sub-screen 21 based on data shard 21 and displays sub-screen 21 in the main perspective display area. The client generates sub-screen 22 based on data shard 22 and displays sub-screen 22 in the overhead perspective display area. When data shard 31 and data shard 32 are already stored in the specified storage medium, the client generates sub-screen 31 based on data shard 31 and displays sub-screen 31 in the main perspective display area. The client generates sub-screen 32 based on data shard 32 and displays sub-screen 32 in the overhead perspective display area. Thus, a complete main perspective screen of the package to be detected can be displayed in the main perspective display area. The complete main perspective screen can include sub-screen 11, sub-screen 21, and sub-screen 31. And a complete overhead perspective screen of the package to be detected can be displayed in the overhead perspective display area. The complete overhead perspective screen can include sub-screen 12, sub-screen 22, and sub-screen 32.

[0062] Exemplarily, in order to display the main perspective screen and the overhead perspective screen simultaneously, in this embodiment, instead of using a dual-screen client (i.e., the display interface of one screen displays the main perspective screen and the display interface of the other screen displays the overhead perspective screen), a single screen is used to simultaneously display the main perspective screen and the overhead perspective screen, that is, a dual-perspective display area of one display interface is used to simultaneously display the main perspective screen and the overhead perspective screen.

[0063] For example, the dual-view display area may include a main-view display area and a top-view display area. The main-view display area and the top-view display area are arranged vertically one above the other, and a single screen is used to display the dual views. Considering that the top view is relatively flat, the dual views are arranged by cutting along the vertical axis 6 / 4. Of course, it can also be cut along the vertical axis 5 / 5, 7 / 3, etc., and there is no limitation in this regard. The main-view display area may be larger than the top-view display area, or it may be smaller than or equal to the top-view display area.

[0064] When the dual views are arranged by cutting along the vertical axis 6 / 4, the main-view display area may be located in the upper half of the display interface, while the top-view display area may be located in the lower half of the display interface. See Figure 2 as shown.

[0065] Exemplarily, for the application scenario of security inspection equipment, when collecting data slice 11 (data slice 12) through the acquisition device, there is non-parcel data on the upper and lower sides of data slice 11. Thus, when the client generates sub-picture 11 based on data slice 11, there are invalid areas on the upper and lower sides of sub-picture 11, that is, sub-picture 11 includes a valid parcel area and an invalid area. Similarly, when the client generates sub-picture 12 based on data slice 12, sub-picture 12 includes a valid parcel area and an invalid area. See Figure 3 as shown, which is a schematic diagram of the display interface of the client showing the pictures before and after cropping. In the schematic diagram on the left, the upper and lower white edges of sub-picture 11 in the main-view display area are invalid areas, and the upper and lower white edges of sub-picture 12 in the top-view display area are invalid areas.

[0066] When the sub-picture 11 is completely displayed through the display interface of a single screen, since the screen size is large enough to completely display sub-picture 11, there is no need to scale sub-picture 11. When sub-picture 11 and sub-picture 12 are simultaneously displayed through the display interface of a single screen, the size of the main-view display area of sub-picture 11 is small, and it may be necessary to scale down sub-picture 11. The size of the top-view display area of sub-picture 12 is small, and it may be necessary to scale down sub-picture 12. Based on this, when scaling down sub-picture 11, the existence of the upper and lower white edges (invalid areas) of sub-picture 11 will result in a very small valid parcel area, thus affecting the staff's viewing of the picture. When scaling down sub-picture 12, the existence of the upper and lower white edges of sub-picture 12 will result in a very small valid parcel area. Based on this, sub-picture 11 can also be cropped, that is, the invalid areas of the upper and lower white edges are cropped, and the remaining area is the valid parcel area, and the valid parcel area of sub-picture 11 is displayed through the main-view display area. See Figure 3As shown, in the schematic diagram on the right, the valid wrapping area of sub-screen 11 is shown. Similarly, sub-screen 12 can be cropped, that is, the invalid areas at the upper and lower white edges are cropped, and the remaining area is the valid wrapping area, and the valid wrapping area of sub-screen 12 is displayed through the top-down view area.

[0067] When cropping sub-screen 11, the upper cropping start value of sub-screen 11 can be determined. The upper cropping start value is the overlapping area between the invalid area and the valid wrapping area (which can be a row of pixel areas). The upper side of the overlapping area is the invalid area, and the lower side of the overlapping area is the valid wrapping area. The upper cropping start value represents a row of pixel areas. For example, when the upper cropping start value is 150, it means the 150th row of pixels of sub-screen 11 (in the order from top to bottom, they are the 1st, 2nd, 3rd, and 4th rows of pixels) is used as the upper cropping start value. Determine the lower cropping start value of sub-screen 11, that is, the overlapping area between the invalid area and the valid wrapping area. The upper side of the overlapping area is the valid wrapping area, and the lower side of the overlapping area is the invalid area. The lower cropping start value represents a row of pixel areas. For example, when the lower cropping start value is 400, it means the 400th row of pixels of sub-screen 11 is used as the lower cropping start value.

[0068] Based on this, cropping can be performed starting from the 150th row of pixels and the 400th row of pixels of sub-screen 11, that is, the valid wrapping area of sub-screen 11 is from the 150th row of pixels to the 400th row of pixels of sub-screen 11.

[0069] After obtaining the valid wrapping area of sub-screen 11, the wrapping display height of sub-screen 11 can be determined. This wrapping display height can represent the height of the image displayed in the main perspective display area. For example, the height of the valid wrapping area of sub-screen 11 is used as this wrapping display height. For example, when the 150th row of pixels to the 400th row of pixels is the valid wrapping area, this wrapping display height can be 250 rows of pixels (that is, 400 - 150).

[0070] In summary, the wrapping display height can be determined based on the actual height of the data shard wrapping, the upper cropping start value, and the lower cropping start value. The actual height of the wrapping can represent the height of the image collected by the security inspection device (that is, the height of the image corresponding to the data shard, that is, the height of sub-screen 11). For example, assume the actual height of the wrapping is 700, then the height of sub-screen 11 is 700 (from the 1st to the 700th row). If the upper cropping start value is 150 and the lower cropping start value is 400, then the wrapping display height is 250 (700 - 150 - 300). Here, 150 means cropping 150 rows of pixels on the upper side, and 300 (700 - 400) means cropping 300 rows of pixels on the lower side.

[0071] In addition, the height of the main perspective display area of the display interface can be determined, and then the ratio between the height of the main perspective display area and the display height of the package can be calculated. If the ratio is less than 1, the scaling ratio 1 of sub-screen 11 is determined to be this ratio; if the ratio is not less than 1, the scaling ratio 1 is determined to be 1.

[0072] When cropping sub-screen 12, the upper cropping start value of sub-screen 12 can be determined, and the upper cropping start value represents a row of pixel areas, and the lower cropping start value of sub-screen 12 can be determined, and the lower cropping start value represents a row of pixel areas. Based on this, sub-screen 12 can be cropped based on the upper cropping start value and the lower cropping start value. After obtaining the effective package area of sub-screen 12, the display height of the package of sub-screen 12 can be determined.

[0073] In addition, the height of the top-down perspective display area of the display interface can be determined, and then the ratio between the height of the top-down perspective display area and the display height of the package can be calculated. If the ratio is less than 1, the scaling ratio 2 of sub-screen 12 is determined to be this ratio; if the ratio is not less than 1, the scaling ratio 2 is determined to be 1.

[0074] In summary, the scaling ratio 1 of sub-screen 11 and the scaling ratio 2 of sub-screen 12 can be obtained. If the scaling ratio 1 is less than the scaling ratio 2, the effective package area of sub-screen 11 is scaled using the scaling ratio 1, and the scaled effective package area of sub-screen 11 is displayed in the main perspective display area. For example, if the scaling ratio 1 is 0.5, the scaled width is 0.5 times the width before scaling, and the scaled height is 0.5 times the height before scaling. If the scaling ratio 1 is 1, the scaled width is 1 times the width before scaling, and the scaled height is 1 times the height before scaling. In this case, the scaled image is the same as the image before scaling. Also, the effective package area of sub-screen 12 is scaled using the scaling ratio 1, and the scaled effective package area of sub-screen 12 is displayed in the top-down perspective display area. Or, if the scaling ratio 1 is not less than the scaling ratio 2, the effective package area of sub-screen 11 is scaled using the scaling ratio 2, and the scaled effective package area of sub-screen 11 is displayed in the main perspective display area. Also, the effective package area of sub-screen 12 is scaled using the scaling ratio 2, and the scaled effective package area of sub-screen 12 is displayed in the top-down perspective display area.

[0075] In summary, it can be seen that the scaled effective package area of sub-screen 11 can be displayed in the main perspective display area, and the scaled effective package area of sub-screen 12 can be displayed in the top-down perspective display area.

[0076] Further, after the client generates the sub - picture 21 based on the data shard 21, it can crop the sub - picture 21 to obtain the effective wrapping area of the sub - picture 21. Determine the wrapping display height of the sub - picture 21, and calculate the ratio value between the height of the main - perspective display area and the wrapping display height. If the ratio value is less than 1, determine the scaling ratio of the sub - picture 21 as the ratio value; if the ratio value is not less than 1, determine the scaling ratio of the sub - picture 21 as 1. After the client generates the sub - picture 22 based on the data shard 22, it can crop the sub - picture 22 to obtain the effective wrapping area of the sub - picture 22, and determine the scaling ratio of the sub - picture 22.

[0077] In summary, the scaling ratios of the sub - picture 21 and the sub - picture 22 can be obtained. Then, select the minimum scaling ratio from the scaling ratios of the sub - picture 11, the sub - picture 12, the sub - picture 21, and the sub - picture 22. If the minimum scaling ratio is the scaling ratio of the sub - picture 11 or the sub - picture 12, the effective wrapping areas of the already - displayed sub - picture 11 and sub - picture 12 remain unchanged. Scale the effective wrapping area of the sub - picture 21 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 21 in the main - perspective display area. Scale the effective wrapping area of the sub - picture 22 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 22 in the top - down perspective display area.

[0078] If the minimum scaling ratio is the scaling ratio of the sub - picture 21 or the sub - picture 22, the effective wrapping areas of the already - displayed sub - picture 11 and sub - picture 12 change. Scale the effective wrapping area of the sub - picture 11 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 11 in the main - perspective display area (i.e., replace the currently - displayed picture). Scale the effective wrapping area of the sub - picture 12 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 12 in the top - down perspective display area. Scale the effective wrapping area of the sub - picture 21 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 21 in the main - perspective display area. Scale the effective wrapping area of the sub - picture 22 using the minimum scaling ratio, and display the scaled - down effective wrapping area of the sub - picture 22 in the top - down perspective display area.

[0079] In summary, display the scaled - down effective wrapping areas of the sub - picture 11 and sub - picture 21 in the main - perspective display area, and display the scaled - down effective wrapping areas of the sub - picture 12 and sub - picture 22 in the top - down perspective display area.

[0080] Further, after the client generates the sub - screen 31 based on the data shard 31, it can crop the sub - screen 31 to obtain the effective bounding box of the sub - screen 31 and determine the scaling ratio of the sub - screen 31. After the client generates the sub - screen 32 based on the data shard 32, it can crop the sub - screen 32 to obtain the effective bounding box of the sub - screen 32 and determine the scaling ratio of the sub - screen 32. Then, select the minimum scaling ratio from the scaling ratios of sub - screen 11, sub - screen 12, sub - screen 21, sub - screen 22, sub - screen 31, and sub - screen 32. Then, perform a scaling operation on the effective bounding boxes of sub - screen 11, sub - screen 12, sub - screen 21, sub - screen 22, sub - screen 31, and sub - screen 32 based on the minimum scaling ratio, and display the scaled effective bounding boxes in the main - view display area and the top - view display area.

[0081] At this point, a complete image of the main view of the package to be detected can be displayed in the main - view display area. This complete image can include the scaled effective bounding box of sub - screen 11, the scaled effective bounding box of sub - screen 21, and the scaled effective bounding box of sub - screen 31. A complete image of the top view of the package to be detected can be displayed in the top - view display area. This complete image can include the scaled effective bounding box of sub - screen 12, the scaled effective bounding box of sub - screen 22, and the scaled effective bounding box of sub - screen 32.

[0082] In the above application scenario, an image display method is proposed in an embodiment of the present application. This method can be applied to a client, and the image data of the package to be detected is stored in a specified storage medium of the client.

[0083] For example, the security inspection device can send the main - view image data to the client, and the client stores the main - view image data of the package to be detected in the specified storage medium. In this case, the main - view image data can include multiple data shards, that is, the security inspection device sequentially sends multiple data shards to the client, and the client sequentially stores multiple data shards in the specified storage medium. Or, the security inspection device can send the main - view image data and the top - view image data to the client, and the client stores the main - view image data and the top - view image data of the package to be detected in the specified storage medium. In this case, the main - view image data can include multiple data shards, and the top - view image data can include multiple data shards.

[0084] For convenience of description, in this embodiment, taking the image data of the package to be detected as an example, for the scenario where there is only the main-view image data, the image data of the package to be detected is the main-view image data, and all the display areas of the display interface are used as the main-view display areas. Or, for the scenario where there are both the main-view image data and the top-view image data, all the display areas of the display interface are divided into the main-view display areas and the top-view display areas. If the image data of the package to be detected is the main-view image data, the corresponding picture of the main-view image data is displayed in the main-view display areas; if the image data of the package to be detected is the top-view image data, the corresponding picture of the top-view image data is displayed in the top-view display areas.

[0085] See Figure 4 As shown, it is a schematic flowchart of the picture display method, and the method may include:

[0086] Step 401: For each package to be detected (subsequently taking one package to be detected as an example), when the package to be detected is first displayed on the display interface, or when the displayed picture of the package to be detected displayed on the display interface is updated each time, obtain the initial picture output speed corresponding to the package to be detected.

[0087] Exemplarily, the screen display frame rate of the client can be obtained. The screen display frame rate can be, for example, 120hz or 60hz, etc. 120hz means that the client displays 120 pictures per second, and 60hz means that the client displays 60 pictures per second. Taking 60hz as an example, assume that at the 1st millisecond, the picture a1 of the package to be detected is first displayed on the display interface (the height of the picture a1 is the height of the display interface, and the width of the picture a1 is m pixels, where m can be a positive integer, such as 1, 2, 3, etc.). Regarding how to display the picture a1, see the subsequent steps.

[0088] At the 2nd millisecond, it is necessary to update the displayed picture (i.e., the picture a1) of the package to be detected displayed on the display interface, and display the picture a1 and the picture a2 of the package to be detected on the display interface. At the 3rd millisecond, it is necessary to update the displayed picture (i.e., the picture a1 and the picture a2) of the package to be detected displayed on the display interface, and display the picture a1, the picture a2, and the picture a3 of the package to be detected on the display interface, and so on.

[0089] To sum up, every 1 millisecond, it is necessary to update the displayed picture of the package to be detected displayed on the display interface. That is to say, every 1 millisecond, the Figure 4 shown process is executed.

[0090] Exemplarily, in order to obtain the initial picture output speed corresponding to the package to be detected, the following steps can be adopted:

[0091] Step 4011: When the package to be detected is first displayed on the display interface, or when the displayed image of the package to be detected is updated each time, determine whether a data shard of the package to be detected is newly added to the specified storage medium. For example, the image data of the package to be detected may include multiple data shards. The security inspection device sequentially sends each data shard to the client, and the client sequentially stores each data shard in the specified storage medium. Based on this, it can be determined whether a new data shard is added to the specified storage medium.

[0092] If no new data shard is added to the specified storage medium, step 4012 can be executed.

[0093] If a new data shard is added to the specified storage medium, step 4013 can be executed.

[0094] Step 4012: Use the stored image output speed as the initial image output speed.

[0095] For example, when the displayed image of the package to be detected is updated each time, the image output speed is stored (for the storage process of the image output speed, see the subsequent embodiments). Based on this, if no new data shard is added to the specified storage medium, the image output speed remains unchanged, and the stored image output speed is used as the initial image output speed.

[0096] Step 4013: If a new data shard is added to the specified storage medium, the target cropping value can be determined based on the cropping value of the new data shard and the cropping values of the stored data shards.

[0097] For example, in addition to the new data shard, if no other data shards of the package to be detected are stored in the specified storage medium, the upper cropping start value and the lower cropping start value of the new data shard are used as the target cropping values. The upper cropping start value is the upper cropping start value of the sub-image corresponding to the new data shard, which is the overlapping area between the invalid area and the valid package area. The lower cropping start value is the lower cropping start value of the sub-image corresponding to the new data shard.

[0098] For example, taking the pixels in the 1st, 2nd, and 3rd rows from top to bottom as an example, in addition to the new data shard, if other data shards of the package to be detected are stored in the specified storage medium, the minimum upper cropping start value is selected from the upper cropping start value of the new data shard and the upper cropping start values of the stored data shards, and the maximum lower cropping start value is selected from the lower cropping start value of the new data shard and the lower cropping start values of the stored data shards. The minimum upper cropping start value and the maximum lower cropping start value are determined as the target cropping values, that is, the target cropping values include the minimum upper cropping start value and the maximum lower cropping start value. Or, taking the pixels in the 1st, 2nd, and 3rd rows from bottom to top as an example, the maximum upper cropping start value and the minimum lower cropping start value are selected as the target cropping values.

[0099] For example, the minimum upper clipping start value may represent a height value clipped from the upper side of the actual height of the package, and the maximum lower clipping start value may represent a height value clipped from the lower side of the actual height of the package.

[0100] Step 4014: Determine the package display height based on the target cropping value.

[0101] Exemplarily, the package display height can be determined based on the actual height of the package, the minimum upper cropping start value, and the maximum lower cropping start value of the data slice. The actual height of the package can represent the height of the image collected by the security inspection device, that is, the image height corresponding to the data slice. The package display height can represent the height of the image displayed in the viewing angle display area. For example, assuming that the actual height of the package is 700, the minimum upper cropping start value is 150, and the maximum lower cropping start value is 400, then the package display height is 250.

[0102] Step 4015: determine an initial zoom ratio based on the display height of the package and the height of the viewing angle display area (such as the main viewing angle display area and the top viewing angle display area) of the display interface.

[0103] For example, the ratio between the height of the viewing angle display area of ​​the display interface and the display height of the package can be calculated. Then, if the ratio is less than 1, the initial zoom ratio can be determined to be the ratio; or if the ratio is not less than 1, the initial zoom ratio can be determined to be 1.

[0104] For example, if the display interface includes a main-view display area and a top-view display area, then the ratio between the height of the main-view display area and the package display height can be calculated, and then the zoom ratio corresponding to the main-view display area (such as the ratio or 1) can be determined. The ratio between the height of the top-view display area and the package display height can be calculated, and then the zoom ratio corresponding to the top-view display area (such as the ratio or 1) can be determined. Then, if the zoom ratio corresponding to the main-view display area is less than the zoom ratio corresponding to the top-view display area, the zoom ratio corresponding to the main-view display area is used as the initial zoom ratio. If the zoom ratio corresponding to the main-view display area is not less than the zoom ratio corresponding to the top-view display area, the zoom ratio corresponding to the top-view display area is used as the initial zoom ratio. At this point, the initial zoom ratio can be obtained.

[0105] For example, the initial scaling ratio orgscale can be calculated using the following formula: orgscale = MIN(MIN(main_show_h / main_packet_h, sub_show_h / sub_packet_h), 1.0). In the above formula, main_show_h can represent the height of the main perspective display area, main_packet_h can represent the height of the package display corresponding to the main perspective picture, sub_show_h can represent the height of the top-down perspective display area, and sub_packet_h can represent the height of the package display corresponding to the top-down perspective picture.

[0106] Step 4016: Obtain the package recommended speed, which can be denoted as Vpacketorg.

[0107] Exemplarily, the package recommended speed is used to indicate the pixel width of horizontal movement. For example, the user can pre-configure how many pixel values (linePerSec) to move per second, and the client can convert it to how many pixel values to move per frame. The number of pixel values represents the pixel width of horizontal movement, that is, the package recommended speed. For example, the following formula can be used to determine the package recommended speed: Vpacketorg = linePerSec / ioFramerate. linePerSec represents how many pixel values to move per second, and ioFramerate represents the screen display frame rate.

[0108] Step 4017: Calculate the first product value among the frame interval parameter, the initial scaling ratio, and the package recommended speed, and round down the first product value to obtain the initial output image speed corresponding to the package to be detected.

[0109] Exemplarily, the following formula can be used to determine the initial output image speed: . In the above formula, Vpacket can represent the initial output image speed, n can represent the frame interval parameter, orgscale can represent the initial scaling ratio, and Vpacketorg can represent the package recommended speed. n * orgscale * Vpacketorg can represent the first product value, can represent the rounding-down operation.

[0110] The product value of the initial scaling ratio and the recommended speed of the package (orgscale * Vpacketorg) can be called the second product value. If the second product value is greater than or equal to 1, the frame interval parameter n can be 1. If the second product value is less than 1, the frame interval parameter n can be greater than 1, and the frame interval parameter n is used to make the first product value greater than or equal to 1, and the frame interval parameter n can be a positive integer. For example, if the second product value is 0.5, the frame interval parameter n can be 2. If the second product value is 0.4, the frame interval parameter n can be 3. If the second product value is 0.3, the frame interval parameter n can be 4, and so on.

[0111] For example, when there is scaling for the package to be detected, the initial image output speed Vpacket can be determined according to the initial scaling ratio orgscale and the recommended speed of the package Vpacketorg, such as Vpacket = ⌊orgscale * Vpacketorg⌋. However, considering that the movement of screen pixels needs to be an integer, and the calculated value of orgscale * Vpacketorg may be less than 1. Therefore, to ensure that Vpacket is an integer, then Vpacket = 0, indicating that the initial image output speed is 0 (stopped). In this way, the package to be detected does not move out the image, which is obviously illogical.

[0112] To handle this situation, it is necessary to make Vpacket >= 1. Based on this, take the floor value of n * orgscale * Vpacketorg, and the frame interval parameter n is used to make n * orgscale * Vpacketorg greater than or equal to 1. In this way, it can be ensured that the initial image output speed Vpacket is a positive integer greater than or equal to 1, avoiding Vpacket = 0.

[0113] In the above formula, n represents the frame interval parameter. If n is 1, it means that under normal circumstances, m pixels are moved every 1 frame (n = 1). If n is greater than 1, it means that in the case of frame dropping, m pixels are moved every n frames (n > 1). To sum up, the initial image output speed Vpacket is to move m (m >= 1) pixels every n frames (n >= 1), that is, the initial image output speed Vpacket is used to indicate the pixel width of the horizontal movement.

[0114] So far, step 401 is completed, and the initial image output speed Vpacket corresponding to the package to be detected is obtained.

[0115] Step 402, obtain the target scaling ratio corresponding to the package to be detected.

[0116] Exemplarily, when the package to be detected is first displayed on the display interface, or when the displayed screen of the package to be detected is updated each time, determine whether a data shard of the package to be detected is newly added in the specified storage medium. If no data shard is newly added in the specified storage medium, use the stored zoom ratio as the target zoom ratio and store the target zoom ratio (in the next processing, this target zoom ratio is used as the stored zoom ratio to calculate the target zoom ratio in the next processing, and so on).

[0117] If a data shard is newly added in the specified storage medium, determine the target zoom ratio based on the initial zoom ratio. If the target zoom ratio is greater than the stored zoom ratio, store the target zoom ratio (as the stored zoom ratio in the next processing). If the target zoom ratio is equal to the stored zoom ratio, the target zoom ratio can be stored or the stored zoom ratio can remain unchanged (for continued use in the next processing). For example, regarding the initial zoom ratio orgscale, the method for obtaining the initial zoom ratio orgscale is shown in step 4015.

[0118] Exemplarily, if the frame interval parameter n is 1 and the initial image output speed Vpacket is greater than or equal to 1, determine the target zoom ratio scale based on the quotient of the initial image output speed Vpacket and the package recommended speed Vpacketorg, such as scale = Vpacket / Vpacketorg. If the frame interval parameter n is greater than 1, and / or the initial image output speed Vpacket is less than 1, determine the target zoom ratio as the initial zoom ratio, such as scale = orgscale.

[0119] Step 403: Obtain the target image output speed corresponding to the package to be detected.

[0120] Case 1: When the package to be detected is first displayed on the display interface, the following steps can be used to obtain the target image output speed, and the target image output speed is used to indicate the pixel width of horizontal movement.

[0121] Step S11: Determine the pixel width of the package to be detected that is not displayed.

[0122] Exemplarily, each time a data shard of the package to be detected is newly added in the specified storage medium, increase the pixel width of the package to be detected that is not displayed based on the pixel width of the data shard. When no data shard of the package to be detected is newly added in the specified storage medium, do not increase the pixel width that is not displayed.

[0123] For example, the pixel width of a data slice (which can also be referred to as the wrapped slice width) can represent how many pixels the data slice corresponds to horizontally. Denote the pixel width of the data slice as Wfrag, and the client knows the pixel width of the data slice. In addition, the unshown pixel width can represent the remaining length of the package to be detected. Denote the unshown pixel width as Lremain. The unshown pixel width represents the sum of the widths of all unshown content, and the unshown pixel width is the remaining width of the unexhibited part of the package to be detected.

[0124] Suppose the current value of the unshown pixel width is Lremain1, and the pixel width of the data slice is Wfrag. Then, when adding a data slice of the package to be detected, the updated unshown pixel width is Lremain1 + Wfrag.

[0125] Exemplarily, each time a sub - picture is displayed on the display interface based on the target rendering speed, the unshown pixel width is decreased by the pixel width of the horizontal movement indicated by the target rendering speed.

[0126] For example, when the target rendering speed is to move m (m >= 1) pixels per frame, the pixel width of the horizontal movement indicated by the target rendering speed is m. That is to say, when a sub - picture is displayed on the display interface, the width of the sub - picture is m, and the height of the sub - picture is the height of the viewing area. Suppose the current value of the unshown pixel width is Lremain1, then the updated unshown pixel width is Lremain1 - m.

[0127] Step S12: If the unshown pixel width Lremain is greater than the pixel width Wfrag of the data slice, then determine whether the unshown pixel width Lremain is greater than the product of the initial rendering speed Vpacket and the configured maximum time interval frameMax, that is, whether Lremain is greater than Vpacket * frameMax.

[0128] For example, frameMax represents the maximum time interval, which can be configured according to experience. The maximum time interval represents the maximum interval between the picture displayed by the client and the picture collected by the security inspection device. If it is necessary to control the time difference between the picture displayed by the client and the picture collected by the security inspection device to be no more than 300 ms to ensure timeliness, then the maximum time interval can be 300 ms, and the time difference is controlled to be no more than 300 ms through the maximum time interval.

[0129] If not, that is, Lremain is not greater than Vpacket * frameMax, then step S13 can be executed.

[0130] If so, that is, Lremain is greater than Vpacket * frameMax, then step S14 can be executed.

[0131] Step S13: Determine the initial image output speed Vpacket as the target image output speed Vmove, and store the target image output speed (in the next processing, this target image output speed is used as the stored image output speed).

[0132] Step S14: Determine the target image output speed Vmove based on the initial image output speed Vpacket and the configured target value, and store the target image output speed (in the next processing, this target image output speed is used as the stored image output speed). For example, the target value can be configured according to experience, and the target value can be a value greater than 0, such as 0.5, 1, 1.5, 2, etc. Since the target value is greater than 0, the target image output speed Vmove can be greater than the initial image output speed Vpacket, such as Vmove = Vpacket + 1.

[0133] Thus, the target image output speed Vmove corresponding to the package to be detected can be obtained.

[0134] Case 2: When updating the displayed screen of the package to be detected each time, the following steps can be used to obtain the target image output speed, and the target image output speed is used to indicate the pixel width of horizontal movement.

[0135] Step S21: Determine the pixel width of the non-displayed part corresponding to the package to be detected.

[0136] Exemplarily, each time a data shard of the package to be detected is newly added in the specified storage medium, the pixel width of the non-displayed part corresponding to the package to be detected can be increased based on the pixel width of the data shard. Each time a sub-screen is displayed on the display interface based on the target image output speed, the pixel width of the non-displayed part corresponding to the package to be detected can be reduced based on the pixel width of horizontal movement indicated by the target image output speed.

[0137] Step S22: Determine whether the pixel width of the non-displayed part Lremain is greater than the pixel width of the data shard Wfrag. If so, step S23 can be executed; if not, step S26 can be executed.

[0138] Step S23: When updating the displayed screen of the package to be detected each time, if the package to be detected is not displayed on the display interface for the first time, it can be determined whether the pixel width of the non-displayed part is not greater than the product of the initial image output speed and the maximum time interval, that is, whether Lremain is not greater than Vpacket * frameMax.

[0139] If so, that is, Lremain is not greater than Vpacket * frameMax, step S24 can be executed.

[0140] Otherwise, that is, if Lremain is greater than Vpacket * frameMax, step S25 can be executed.

[0141] Step S24: Determine the stored image output speed (i.e., the target image output speed in the previous processing) as the target image output speed Vmove, and store this target image output speed, which is used as the stored image output speed.

[0142] Step S25: Determine the initial image output speed Vpacket as the target image output speed Vmove, and store the target image output speed (in the next processing, this target image output speed is used as the stored image output speed).

[0143] Step S26: If the un-displayed pixel width Lremain is not greater than the pixel width Wfrag of the data shard, determine whether the stored image output speed is 0. If the stored image output speed is not 0, step S27 can be executed. If the stored image output speed is 0, step S28 can be executed.

[0144] Step S27: Determine the stored image output speed as the target image output speed Vmove, and store the target image output speed, that is, this target image output speed is used as the stored image output speed.

[0145] Step S28: Determine whether the frame interval is greater than the fixed number of frames. If not, the frame interval can be incremented by 1, determine the target image output speed Vmove as 0, and store the target image output speed. If so, determine the initial image output speed Vpacket as the target image output speed Vmove, store the target image output speed, and update the frame interval to 0.

[0146] Exemplarily, the initial value of the frame interval is 0. When the frame interval is not greater than the fixed number of frames, each time the displayed image of the package to be detected is updated (e.g., every 1 millisecond), the frame interval can be incremented by 1, and the target image output speed Vmove is determined as 0, and so on, until the frame interval is greater than the fixed number of frames, determine the initial image output speed Vpacket as the target image output speed Vmove, update the frame interval to 0, and repeat the above steps.

[0147] Exemplarily, the fixed number of frames can be determined based on the quotient of the pixel width Wfrag of the data shard and the package recommended speed Vpacketorg. For example, the fixed number of frames is the number of frames for moving a data shard completely. Denote the fixed number of frames as FixedGapFrame. When each data shard of the package to be detected moves at the package recommended speed Vpacketorg, it will move completely in the fixed number of frames FixedGapFrame. For example, the fixed number of frames can be determined by the following formula: FixedGapFrame = Wfrag / Vpacketorg.

[0148] When there is scaling of the package, the pixel width Wfrag and the recommended package speed Vpacketorg also change synchronously. Assuming the scaling ratio is scale, then FixedGapFrame = (scale * Wfrag) / (scale * Vpacketorg). Obviously, the fixed number of frames remains unchanged, that is, FixedGapFrame = Wfrag / Vpacketorg.

[0149] Thus, the target image output speed Vmove corresponding to the package to be detected can be obtained.

[0150] Step 404: When the package to be detected is first displayed on the display interface, select third sub-data from the image data stored in the specified storage medium based on the target image output speed (the target image output speed obtained in Case 1), generate a third sub-screen based on the third sub-data, and display the third sub-screen through the display interface.

[0151] Exemplarily, when the package to be detected is first displayed on the display interface, there is no displayed screen of the package to be detected on the display interface, and a screen of the package to be detected needs to be newly added to the display interface. Based on this, considering that the target image output speed is used to indicate the pixel width of horizontal movement, if the pixel width is m, then, m pixel widths of third sub-data can be selected from the image data of the package to be detected, and a raw screen is generated based on the third sub-data. The raw screen is the effective package area after cropping, and the cropping process can refer to the above embodiments. Then, the raw screen is scaled based on the target scaling ratio to obtain the third sub-screen.

[0152] After obtaining the third sub-screen, the third sub-screen can be displayed through the display interface. For example, the third sub-screen can be spliced and displayed behind the complete screen of the previous package to be detected.

[0153] Exemplarily, if the display interface includes a main perspective display area and an overhead perspective display area, then, based on the target image output speed, select the third sub-data 1 of the main perspective from the main perspective image data stored in the specified storage medium, generate the third sub-screen 1 of the main perspective based on the third sub-data 1, and display the third sub-screen 1 of the main perspective through the main perspective display area. And, based on the target image output speed, select the third sub-data 2 of the overhead perspective from the overhead perspective image data stored in the specified storage medium, generate the third sub-screen 2 of the overhead perspective based on the third sub-data 2, and display the third sub-screen 2 of the overhead perspective through the overhead perspective display area.

[0154] Step 405: When updating the displayed screen of the package to be detected each time, obtain the screen to be displayed corresponding to the package to be detected, and the screen to be displayed can include a first sub-screen and a second sub-screen.

[0155] Exemplarily, when the package to be detected is not displayed on the display interface for the first time, there is already a displayed image of the package to be detected on the display interface. Therefore, it is necessary to update the displayed image of the package to be detected and additionally add an image of the package to be detected on the display interface. When updating the displayed image, the updated image is called the first sub-image. When additionally adding an image of the package to be detected, the added image is called the second sub-image. In summary, the image to be displayed includes the first sub-image and the second sub-image.

[0156] Regarding the acquisition process of the first sub-image, after obtaining the target scaling ratio corresponding to the package to be detected, it can be determined whether the target scaling ratio increases. For example, if the target scaling ratio is greater than the stored scaling ratio (i.e., the target scaling ratio used in the previous processing), it means that the target scaling ratio increases. If the target scaling ratio is equal to the stored scaling ratio, it means that the target scaling ratio remains unchanged.

[0157] If the target scaling ratio of the package to be detected increases, the first sub-data corresponding to the displayed image of the package to be detected can be selected from the image data of the package to be detected. For example, assuming that a displayed image with a width of K pixels of the package to be detected is already displayed on the display interface, then the first sub-data with a width of K pixels can be selected from the image data of the package to be detected (starting from the first pixel of the package to be detected), and an original image is generated based on the first sub-data. The original image is the effective package area after cropping. Then, the original image can be scaled based on the target scaling ratio to obtain the first sub-image.

[0158] If the target scaling ratio of the package to be detected remains unchanged, the first sub-image is the displayed image, that is, the displayed image with a width of K pixels already displayed on the display interface, that is, the displayed image remains unchanged.

[0159] Regarding the acquisition process of the second sub-image, considering that the target output image speed is used to indicate the pixel width of horizontal movement, such as the pixel width is m, then the second sub-data with a width of m pixels can be selected from the image data of the package to be detected (starting from the (K + 1)-th pixel of the package to be detected, where K represents the pixel width of the displayed image), and an original image is generated based on the second sub-data. The original image is the effective package area after cropping. The original image is scaled based on the target scaling ratio to obtain the second sub-image.

[0160] Step 406: Display the first sub-image and the second sub-image through the display interface. When displaying the first sub-image and the second sub-image, the second sub-image is spliced behind the first sub-image.

[0161] Exemplarily, if the display interface includes a main perspective display area and an overhead perspective display area, the first sub-picture 1 and the second sub-picture 1 of the main perspective are obtained based on the main perspective image data stored in the specified storage medium, and the first sub-picture 1 and the second sub-picture 1 of the main perspective are displayed through the main perspective display area. Moreover, the first sub-picture 2 and the second sub-picture 2 of the overhead perspective are obtained based on the overhead perspective image data stored in the specified storage medium, and the first sub-picture 2 and the second sub-picture 2 of the overhead perspective are displayed through the overhead perspective display area.

[0162] Exemplarily, when displaying the first sub-picture and the second sub-picture, the second sub-picture is spliced behind the first sub-picture, so that a display process similar to a video mode can be realized. For example, multiple sub-pictures are dynamically and real-time scrolled and displayed in sequence in the direction of "from left to right" or "from right to left".

[0163] For example, when displaying multiple sub-pictures from left to right, the first sub-picture is located on the left side, and the second sub-picture can be spliced on the right side of the first sub-picture. When displaying multiple sub-pictures from right to left, the first sub-picture is located on the right side, and the second sub-picture can be spliced on the left side of the first sub-picture.

[0164] Exemplarily, relying on the dual-perspective data reported by the security inspection device, by presenting dual-perspective image output, that is, displaying images through the main perspective display area and the overhead perspective display area, the image judgment efficiency can be better improved.

[0165] Exemplarily, referring to Figure 5 As shown, it is a schematic diagram for updating the target starting coordinates. The package A to be detected has completed its movement, that is, the complete picture of the package A to be detected has been displayed. The starting coordinate of the package A to be detected is A_x. The package B to be detected has completed its movement, that is, the complete picture of the package B to be detected has been displayed. The starting coordinate of the package B to be detected is B_x. The package C to be detected is moving and the complete picture of the package C to be detected has not been displayed yet. The current starting coordinate of the package C to be detected is C_x.

[0166] On this basis, when displaying the first sub-picture and the second sub-picture of the package C to be detected through the display interface, it is necessary to first determine the target starting coordinate of the package C to be detected, and then, starting from the target starting coordinate of the display interface, display the first sub-picture and the second sub-picture in sequence. For example, if the target zoom ratio of the package to be detected remains unchanged, the target starting coordinate remains unchanged and is the current starting coordinate C_x. Therefore, starting from the target starting coordinate C_x of the display interface, the first sub-picture and the second sub-picture are displayed in sequence.

[0167] If the target scaling ratio of the package to be detected increases, the target starting coordinate is determined based on the current ending coordinate and the target scaling ratio, and the target starting coordinate is not the current starting coordinate C_x. For example, the current ending coordinate represents the ending coordinate when the last picture of the package to be detected C was displayed. See Figure 5 as shown.

[0168] For example, based on the current ending coordinate, the target scaling ratio, and the stored scaling ratio (i.e., the target scaling ratio of the previous processing), the interval pixel width between the target starting coordinate and the current ending coordinate of the package to be detected is determined. For example, the following formula can be used to determine the interval pixel width: intgapContentWidth = displayPos - (displayPos / curScale * m_contentScale). In the above formula, intgapContentWidth represents the interval pixel width, displayPos represents the current ending coordinate of the package to be detected, curScale represents the target scaling ratio, and m_contentScale represents the stored scaling ratio.

[0169] Then, the target starting coordinate is determined based on this interval pixel width and the current ending coordinate displayPos. For example, the difference between the current ending coordinate displayPos and this interval pixel width is used as the target starting coordinate.

[0170] Considering that during the movement of the package to be detected, the interval pixel width may be determined multiple times. Therefore, when determining the interval pixel width each time, the sum value of all interval pixel widths can be calculated, and the difference between the current ending coordinate displayPos and this sum value is used as the target starting coordinate.

[0171] In Figure 5 , the target starting coordinate of the package to be detected C is C_x1. Therefore, starting from the target starting coordinate C_x1 of the display interface, the first sub-picture and the second sub-picture can be displayed in sequence.

[0172] From Figure 5 it can be seen that there is a blank strip gap between the target starting coordinate C_x1 of the package to be detected C and the ending coordinate of the package to be detected B, that is, there is a certain interval between the target starting coordinate C_x1 of the package to be detected C and the ending coordinate of the package to be detected B, rather than being continuous. The reason is that:

[0173] After the displayed image of the package C to be detected is shown on the display interface, when the target zoom ratio increases, the displayed image of the package C to be detected needs to be zoomed (the zoomed image is the first sub-image). Once zoomed, the width of the displayed image will become smaller, resulting in image rendering lags. When the width becomes smaller, the displayed part of the package C to be detected cannot be pulled back. That is, the displayed part of the package C to be detected still needs to move at the newly calculated speed. Therefore, when adjusting the target starting coordinate of the package C to be detected, it is also necessary not to affect the continuous forward movement of the tail of the package C to be detected (the whole package C). In view of the above findings, in this embodiment, the target starting coordinate of the package C to be detected can be recalculated, that is, the starting coordinate is updated in real time due to the change of the zoom ratio, so as to supplement the blank strip for the package C to be detected, solve the lag problem caused by the overall pull-back of the image rendering interface, ensure the smooth image rendering of the package to be detected, and improve the image rendering fluency.

[0174] For example, when the target zoom ratio increases, the displayed image of the package C to be detected needs to be zoomed, which affects the starting point of the coordinates of the package C to be detected. Also, since the packages to be detected are continuous, the reduction of the package C to be detected will cause an overall pull-back of all packages, resulting in visual lags.

[0175] In a possible implementation manner, when the client displays the image of the package to be detected, it can display the image of the package to be detected based on the screen display frame rate (such as 120 hz or 60 hz, etc.), ensuring the real-time movement of the image on the display interface. For example, when the screen display frame rate is 60 hz, one frame is displayed every 1 millisecond, and each frame moves m pixels (m >= 1) to achieve the effect of real-time movement. To ensure the smooth image rendering of the package to be detected and balance timeliness while ensuring smoothness, in the embodiment of this application, a method for displaying an image is proposed. Refer to Figure 6 As shown, it is a schematic flowchart of this method for displaying an image.

[0176] Step 601: Obtain the screen display frame rate, which can be 120 hz or 60 hz, etc.

[0177] Step 602: Update the frame in real time based on the screen display frame rate. For example, taking the screen display frame rate of 60 hz as an example, one frame is updated every 1 millisecond. Each time a frame is updated, the displayed image of the package to be detected shown on the display interface is updated, such as moving m pixels.

[0178] Step 603: Process using the sharding cropping and package update strategy. For example, when processing using the sharding cropping and package update strategy, parameters such as the initial image rendering speed corresponding to the package to be detected, the target zoom ratio corresponding to the package to be detected, and the target starting coordinate of the package to be detected can be obtained.

[0179] Step 604: Process using the package real-time movement strategy. For example, when processing using the package real-time movement strategy, the target image output speed corresponding to the package to be detected can be obtained, and based on the target image output speed corresponding to the package to be detected, the corresponding image of the package to be detected is displayed on the display interface.

[0180] Step 605: Determine whether to end the drawing, that is, whether the screen display process has ended.

[0181] If so, end the drawing process; if not, re-update the frame in real time based on the screen display frame rate.

[0182] In a possible implementation manner, for step 603, the process of processing using the sharding cropping and package update strategy can be referred to Figure 7 as shown, and this process may include the following steps:

[0183] Step 701: Determine whether a new data shard is added, that is, for the package to be detected, when updating one frame each time, determine whether a data shard of the package to be detected is newly added in the specified storage medium. If not, execute step 604 and process using the package real-time movement strategy. If so, execute step 702.

[0184] Step 702: Determine whether the package to be detected already exists. For example, when adding a new data shard, determine whether the package to be detected corresponding to the newly added data shard already exists. If so, it means that the newly added data shard is the data shard of an existing package to be detected, and execute step 703; if not, it means that the newly added data shard is the data shard of a new package to be detected, and there is no package to be detected with a newly added data shard, and execute step 704.

[0185] Step 703: Update the data shard for the existing package to be detected, that is, add the newly added data shard to the existing package to be detected. After step 703, step 707 can be executed.

[0186] Step 704: Add a new package to be detected and update the data shard for this package to be detected.

[0187] Step 705: Calculate the package recommended speed Vpacketorg of this package to be detected.

[0188] For example, Vpacketorg = linePerSec / ioFramerate, where linePerSec represents the number of pixel values moved per second, which can be a value pre-configured by the user, and ioFramerate represents the screen display frame rate.

[0189] Step 706: Calculate the fixed number of frames FixedGapFrame. The fixed number of frames is the number of frames required to move a data fragment completely. For example, FixedGapFrame = Wfrag / Vpacketorg. For example, Wfrag can represent the pixel width of the data fragment, and Vpacketorg can represent the recommended speed of the package.

[0190] Step 707: Update the target cropping value, that is, the target cropping value corresponding to the effective package area.

[0191] For example, when the package to be detected does not exist, the upper cropping start value and the lower cropping start value of the newly added data fragment can be used as the target cropping value. Or, when the package to be detected already exists, select the minimum upper cropping start value from the upper cropping start value of the newly added data fragment and the upper cropping start values of the stored data fragments, and select the maximum lower cropping start value from the lower cropping start value of the newly added data fragment and the lower cropping start values of the stored data fragments. The minimum upper cropping start value and the maximum lower cropping start value can be determined as the target cropping value.

[0192] Step 708: Determine the display height of the package based on the target cropping value. For example, determine the display height of the package based on the actual height of the package of the data fragment, the minimum upper cropping start value, and the maximum lower cropping start value.

[0193] Step 709: Determine the initial zoom ratio based on the display height of the package and the height of the viewing area.

[0194] Step 710: Determine the initial image output speed based on the initial zoom ratio. For example, determine the initial image output speed Vpacket corresponding to the package to be detected based on the frame interval parameter, the initial zoom ratio, and the recommended speed of the package.

[0195] Step 711: Obtain the target zoom ratio corresponding to the package to be detected. For example, determine the target zoom ratio based on the initial image output speed and the recommended speed of the package, or determine the target zoom ratio based on the initial zoom ratio.

[0196] Step 712: Determine whether the target zoom ratio increases. For example, if the target zoom ratio is greater than the stored zoom ratio, it means the target zoom ratio increases. If the target zoom ratio is equal to the stored zoom ratio, it means the target zoom ratio remains unchanged. If so, execute Step 713; if not, execute Step 715.

[0197] Step 713: Determine whether the package to be detected is the package currently being displayed, that is, whether the package of the currently newly added data fragment is being displayed. If so, execute Step 714; if not, execute Step 715.

[0198] Step 714. Determine the target starting coordinate based on the current ending coordinate and the target scaling ratio.

[0199] For example, based on the current ending coordinate, the target scaling ratio, and the stored scaling ratio, determine the pixel width of the interval between the target starting coordinate and the current ending coordinate. Then, based on the pixel width of the interval and the current ending coordinate, determine the target starting coordinate. For example, the difference between the current ending coordinate and the pixel width of the interval is used as the target starting coordinate. Obviously, there is a blank strip gap between the target starting coordinate and the ending coordinate of the previous package, and the width of the blank strip gap is the pixel width of the interval.

[0200] Step 715. Update the un-displayed pixel width Lremain corresponding to the package to be detected.

[0201] For example, each time a data shard of the package to be detected is newly added in the specified storage medium, increase the un-displayed pixel width corresponding to the package to be detected based on the pixel width of the data shard.

[0202] So far, the Figure 7 shown process is completed, step 603 is ended, and then step 604 is executed.

[0203] In a possible implementation manner, for step 604, the process of adopting the real-time package movement strategy for processing can be referred to Figure 8A as shown. This process may include the following steps:

[0204] Step 801. Determine whether the un-displayed pixel width Lremain is greater than 0.

[0205] If not, 0 can be used as the target output image speed Vmove, and the current screen is retained. This frame does not need to be moved, that is, the current screen is not updated, and then step 605 is executed. If so, step 802 can be executed.

[0206] Step 802. Determine whether the frame interval parameter n is 1. n is a value greater than or equal to 1.

[0207] If not, that is, the frame interval parameter n is greater than 1, then determine whether the frame interval framgap is equal to n. If the frame interval framgap is equal to n, restore the frame interval framgap to 0 and execute step 803. If the frame interval framgap is not equal to n, add 1 to the frame interval framgap, retain the current screen, and then execute step 605. For example, the initial value of the frame interval framgap is 0. Each time the frame is updated, 1 can be added to the frame interval framgap until the frame interval framgap is equal to n, and then the frame interval framgap is restored to 0.

[0208] If so, that is, the frame interval parameter n is equal to 1, then step 803 can be executed.

[0209] Step 803: Determine whether the undisplayed pixel width Lremain is greater than the pixel width Wfrag of the data fragment. If not, then execute step 804; if so, then execute step 807.

[0210] Step 804: If the pixel width Lremain is not greater than the pixel width Wfrag of the data fragment, it is determined whether the stored image output speed is 0. If not, that is, the stored image output speed is not 0, then step 805 can be executed. If yes, that is, the stored image output speed is 0, then step 806 can be executed.

[0211] Step 805: Determine the stored output speed as the target output speed Vmove, i.e., continue the output speed used last time, and store the target output speed, i.e., the target output speed is used as the stored output speed. On this basis, the screen can be updated based on the target output speed Vmove, i.e., the screen is displayed on the display interface, and step 604 is completed, and then step 605 can be executed.

[0212] Step 806: Determine whether the frame interval framgap is greater than the fixed frame number FixedGapFrame.

[0213] If not, the frame interval framgap can be increased by 1, the target image output speed Vmove is determined to be 0, the target image output speed Vmove is stored, and on this basis, the current picture is retained, and then step 605 is executed.

[0214] If yes, the frame interval framgap can be restored to 0, the initial image output speed Vpacket is used as the target image output speed Vmove, and the target image output speed Vmove is stored. The screen is updated based on the target image output speed Vmove, that is, the screen is displayed on the display interface, and step 604 is completed, and step 605 is executed.

[0215] Step 807: If the pixel width Lremain is not greater than the pixel width Wfrag of the data fragment, it is determined whether the package to be detected is displayed on the display interface for the first time. If not, that is, the package to be detected is not displayed on the display interface for the first time (the package to be detected is not moved for the first time), then step 808 is executed. If yes, that is, the package to be detected is displayed on the display interface for the first time (the package to be detected is moved for the first time), then step 809 is executed.

[0216] Step 808: Determine whether the undisplayed pixel width Lremain is not greater than the product of the initial image output speed Vpacket and the maximum time interval frameMax, that is, whether Lremain is not greater than Vpacket*frameMax.

[0217] If so, that is, Lremain is not greater than Vpacket*frameMax, the stored output speed is determined as the target output speed Vmove, that is, the output speed used last time is continued, and the target output speed is stored, and the screen is updated based on the target output speed Vmove, thus completing step 604 and executing step 605.

[0218] If not, that is, Lremain is greater than Vpacket*frameMax, the initial image output speed Vpacket is determined as the target image output speed Vmove, and the target image output speed Vmove is stored. Then, the screen is updated based on the target image output speed Vmove, and step 604 is completed, and step 605 is executed.

[0219] Step 809: determine whether the current package to be detected has been received, that is, whether all data fragments of the current package to be detected have been stored in the designated storage medium. If not, step 810 can be executed.

[0220] If so, the maximum image output speed Vset is determined as the target image output speed Vmove, and the target image output speed Vmove is stored, and the screen is updated based on the target image output speed Vmove, thus completing step 604 and executing step 605. For example, the maximum image output speed Vset can be configured by the user based on experience, and the maximum image output speed Vset is manually and subjectively configured by the user in the client configuration interface according to his or her own image judgment ability.

[0221] Step 810: Determine whether the undisplayed pixel width Lremain is greater than the product of the initial image output speed Vpacket and the maximum time interval frameMax, that is, whether Lremain is greater than Vpacket*frameMax.

[0222] If not, that is, Lremain is not greater than Vpacket*frameMax, the initial image output speed Vpacket is determined as the target image output speed Vmove, and the target image output speed Vmove is stored. Then, the screen is updated based on the target image output speed Vmove, and step 604 is completed, and step 605 is executed.

[0223] If so, that is, Lremain is greater than Vpacket*frameMax, the target output speed Vmove is determined based on the initial output speed Vpacket and the target value, and the target output speed Vmove is stored. Then, the screen is updated based on the target output speed Vmove, and step 604 is completed, and step 605 is executed.

[0224] For example, the target value can be configured based on experience. The target value can be a value greater than 0. For example, taking Vpacket + 1 as the target image output speed Vmove, obviously, Vmove is greater than Vpacket.

[0225] This completes Figure 8A the process shown, ends step 604, and then executes step 605.

[0226] From Figure 8A It can be seen that the target image output speed Vmove can be the maximum image output speed Vset, the initial image output speed Vpacket, Vpacket + 1, and 0, etc. That is, it is necessary to consider four target image output speeds such as Vset, Vpacket, Vpacket + 1, and 0. For example, if Lremain > 0 and n is 1, there is no need to reduce the frame rate, and the normal frame refresh process is performed for each frame. If Lremain > Wfrag, then: when the current packet moves for the first time and has been received completely, Vset is used as Vmove for frame-by-frame movement; when the current packet moves for the first time and has not been received completely, if the acceleration condition (Lremain > Vpacket * frameMax) is met, then Vpacket + 1 is used as Vmove for frame-by-frame movement; when the current packet is not moving for the first time (the current frame is not the first frame of the current packet), if Lremain > Vpacket * frameMax, then the movement continues with Vmove for frame-by-frame movement; when the current packet is not moving for the first time, if Lremain <= Vpacket * frameMax, Vpacket is used as Vmove for frame-by-frame movement.

[0227] If Lremain > 0 and n is 1, and if Lremain <= Wfrag, then: when Vmove of the current frame is not 0, the movement continues with Vmove for frame-by-frame movement. When Vmove of the current frame is 0, a data fragment needs to be cached. Therefore, it is judged whether the frame interval framgap is greater than FixedGapFrame. If so, it still meets Lremain <= Wfrag, indicating that there is no subsequent packet report, so as to avoid the current data fragment not being displayed all the time, and the display is completed by moving frame by frame at Vpacket. If framgap greater than FixedGapFrame is satisfied, the frame interval framgap is restored to 0, and Vpacket is used as Vmove for frame-by-frame movement. If framgap greater than FixedGapFrame is not satisfied, the frame interval framgap is increased, this frame is skipped, and no movement is performed.

[0228] If Lremain > 0 and n > 1, it means that frame rate reduction processing is required, and it is necessary to determine whether the frame interval framgap is equal to n. If it is satisfied, the current frame reuses the processing flow of "Lremain > 0 and n is 1". If not, the frame interval framgap is increased, and this frame is skipped without movement.

[0229] In a possible implementation, as shown in Figure 8B the figure, it is a schematic diagram of the real-time movement of the package to be detected. In Figure 8B it, the package A to be detected has completed its movement, that is, the complete picture of the package A to be detected has been displayed, and the package B to be detected has completed its movement, that is, the complete picture of the package B to be detected has been displayed. The package C to be detected is moving and the complete picture of the package C to be detected has not been displayed yet. The packages D and E to be detected are waiting for image generation and the pictures of the packages D and E to be detected have not been displayed yet.

[0230] For the package C to be detected, each time a data shard of the package C to be detected is newly added in the specified storage medium, the un-displayed pixel width Lremain of the package C to be detected is increased based on the pixel width of the data shard. Each time the package C to be detected is moved based on the target image generation speed Vmove, since Vmove is used to indicate the number of pixels for horizontal movement, the un-displayed pixel width Lremain is subtracted by Vmove until Lremain = 0 for the package C to be detected and the movement of the package C to be detected is completed. Then, the movement of the package D to be detected is continued. The movement process of the package D to be detected is the same as that of the package C to be detected and will not be repeated here.

[0231] Since the security inspection device reports data shards with a fixed width Wfrag to the client at a fixed time interval Tgap in the form of data shards, the client can adopt a regular and effective image generation strategy to solve the following problems, that is, adopt the image display method of this embodiment to solve the following problems.

[0232] 1. In an ideal state, the security inspection device reports data fragments at a fixed time interval Tgap and moves normally at the recommended package speed Vpacketorg, then smooth mapping can be completed. However, due to reasons such as abnormal security inspection devices or network fluctuations, the fixed time interval Tgap will change, and the change in the fixed time interval Tgap will cause mapping jams. 2. After the displayed image of the package to be detected is shown on the display interface, when the target zoom ratio increases, the displayed image of the package to be detected needs to be zoomed, which affects the starting coordinate point of the package to be detected. Also, since the packages to be detected are continuous, the reduction of the package to be detected will cause an overall pull-back of all packages, resulting in visual jams, that is, mapping jams. 3. The time delay needs to be considered. When comparing the client with the security inspection device, the time difference between the two should not be greater than 300 ms to ensure timeliness, that is, the time difference between the image shown on the client and the image collected by the security inspection device should not be greater than 300 ms. 4. When multiple security inspection devices are connected to the client, there may be a backlog problem caused by receiving too many packages to be detected. In this case, how to better display the received packages and reduce the time delay also needs to be solved.

[0233] In view of the above findings, the following solutions can be adopted in this embodiment to solve the above problems:

[0234] When Lremain is not greater than the pixel width Wfrag of the data fragment, the target mapping speed Vmove may be 0. When Lremain is greater than the pixel width Wfrag of the data fragment, the target mapping speed Vmove cannot be 0, but Vset, Vpacket, Vpacket + 1 are used as the target mapping speed. That is, when Lremain < Wfrag, the interface stays still, and when Lremain is greater than or equal to Wfrag, Vset, Vpacket, Vpacket + 1 need to be used as the target mapping speed, and the displayed image is moved based on the target mapping speed.

[0235] Based on this, at most one data fragment is cached, which is equivalent to at most a 1-data-fragment time delay. The time delay of one data fragment is the fixed time interval Tgap, which is less than 100 ms. In this way, the time difference between the image shown on the client and the image collected by the security inspection device can be controlled to be not greater than 300 ms, ensuring timeliness, and thus solving problem 3. On the basis of ensuring timeliness, problem 4 can also be solved. By caching one data fragment, even if the fixed time interval Tgap changes and the next data fragment cannot be sent to the client in time, the client can display the locally cached data fragment before the next data fragment arrives, avoiding display interruption, solving the mapping jam caused by the change in the fixed time interval Tgap, and thus solving problem 1.

[0236] When Lremain is greater than Vpacket*frameMax, it means that the width of undisplayed pixels is large. By taking the sum of Vpacket and the target value as the target image output speed Vmove, that is, increasing the value of the target image output speed Vmove, more images can be displayed each time. Based on this, the width of undisplayed pixels can be displayed as soon as possible, so that the time difference between the image displayed by the client and the image collected by the security inspection device is controlled to be no more than 300ms, ensuring timeliness, thereby solving problem 3. On the basis of ensuring timeliness, problem 4 can also be solved.

[0237] After the displayed image of the package to be detected is displayed on the display interface, when the target zoom ratio increases, the target starting coordinates of the package to be detected can be recalculated, that is, the starting coordinates are updated due to the real-time change of the zoom ratio, so as to add blank strips to the package to be detected, so as to solve the jamming problem caused by the overall pull-back of the output interface, and ensure the smooth output of the package to be detected, thereby improving the smoothness of the output, thereby solving problem 2.

[0238] It can be seen from the above technical solutions that in the embodiment of the present application, the original screen is scaled by the target zoom ratio to obtain the first sub-screen, and the first sub-screen is displayed on the display interface, which can ensure the smooth output of the package to be detected, solve the problem of image jamming, and improve the smoothness of image output. The second sub-screen is determined based on the target image output speed, and the second sub-screen is displayed on the display interface, which can ensure the real-time output of the package to be detected, ensure the timeliness of the image output, so that the image displayed by the client and the image collected by the security inspection device do not differ by more than a preset time (such as 0.3s), reducing the delay difference between the client and the security inspection device.

[0239] Solve the problem of image output jamming while ensuring timeliness, improve the smoothness of image output, and achieve smooth image output. Smooth image output means that the package data can be output in real time according to the different speeds of the security inspection equipment. The overall display efficiency of the package on the client is no more than 0.3s different from that of the security inspection equipment. By displaying the main view and the top view on the display interface at the same time, it is convenient for the image judge to judge the image, and the smooth display of the image allows the image judge to judge multiple images at the same time, reducing the situation of missed package judgment and distribution timeout, better improving the efficiency of security inspection image judgment, and making the client more efficient.

[0240] Based on the same application concept as the above method, an image display device is proposed in the embodiment of the present application, which is applied to a client, and the image data of the package to be detected is stored in the designated storage medium of the client, see Figure 9A FIG. 1 is a schematic diagram of the structure of the image display device, and the device may include:

[0241] A processing module 911, configured to obtain a to-be-displayed picture corresponding to the to-be-detected package each time the displayed picture of the to-be-detected package displayed on the display interface is updated, where the to-be-displayed picture includes a first sub-picture and a second sub-picture; wherein, when obtaining the first sub-picture, if the target zoom ratio of the to-be-detected package increases, select first sub-data corresponding to the displayed picture from the image data, generate an original picture based on the first sub-data, and scale the original picture based on the target zoom ratio to obtain the first sub-picture; if the target zoom ratio remains unchanged, the first sub-picture is the displayed picture; wherein, when obtaining the second sub-picture, select second sub-data from the image data based on the obtained target picture output speed, and generate the second sub-picture based on the second sub-data, where the target picture output speed indicates the pixel width of the horizontal movement corresponding to the second sub-picture.

[0242] A display module 912, configured to display the first sub-picture and the second sub-picture through the display interface; wherein, the second sub-picture is spliced behind the first sub-picture.

[0243] Exemplarily, the display interface includes a main-view display area and a top-view display area. When the display module 912 displays the first sub-picture and the second sub-picture through the display interface, it is specifically configured to: display the first sub-picture and the second sub-picture in the main view through the main-view display area; display the first sub-picture and the second sub-picture in the top view through the top-view display area; wherein, the image data includes main-view image data and top-view image data, the main-view image data is used to obtain the first sub-picture and the second sub-picture in the main view, and the top-view image data is used to obtain the first sub-picture and the second sub-picture in the top view.

[0244] Exemplarily, when the processing module 911 obtains the target zoom ratio of the to-be-detected package, it is specifically configured to: determine whether a data shard of the to-be-detected package is newly added to the specified storage medium each time the displayed picture of the to-be-detected package is updated; wherein, the image data of the to-be-detected package includes multiple data shards, and the security inspection device sequentially sends each data shard to the client, and the client sequentially stores each data shard in the specified storage medium; if not, use the stored zoom ratio as the target zoom ratio; and / or, if so, determine a target cropping value based on the cropping value of the newly added data shard and the cropping values of the stored data shards, determine the package display height based on the target cropping value; determine an initial zoom ratio based on the package display height and the height of the view display area of the display interface; determine the target zoom ratio based on the initial zoom ratio.

[0245] Exemplarily, when the processing module 911 determines the target cropping value based on the cropping value of the newly added data shard and the cropping values of the stored data shards, it is specifically configured to: select the minimum upper cropping start value from the upper cropping start value of the newly added data shard and the upper cropping start values of the stored data shards, select the maximum lower cropping start value from the lower cropping start value of the newly added data shard and the lower cropping start values of the stored data shards, and determine the minimum upper cropping start value and the maximum lower cropping start value as the target cropping value. And / or, when the processing module 911 determines the package display height based on the target cropping value, it is specifically configured to: determine the package display height based on the actual height of the package wrapping, the minimum upper cropping start value, and the maximum lower cropping start value; wherein, the actual height of the package represents the height of the image collected by the security inspection device, and the package display height represents the height of the image displayed in the viewing display area.

[0246] Exemplarily, when the processing module 911 determines the initial scaling ratio based on the package display height and the height of the viewing display area of the display interface, it is specifically configured to: calculate the ratio value between the height of the viewing display area of the display interface and the package display height; if the ratio value is less than 1, determine the initial scaling ratio as the ratio value; if the ratio value is not less than 1, determine the initial scaling ratio as 1.

[0247] Exemplarily, when the processing module 911 determines the target scaling ratio based on the initial scaling ratio, it is specifically configured to: calculate the first product value of the frame interval parameter, the initial scaling ratio, and the obtained package recommended speed, and round down the first product value to obtain the initial image output speed; wherein, the package recommended speed is used to indicate the pixel width of the horizontal movement; if the second product value between the initial scaling ratio and the package recommended speed is greater than 1, the frame interval parameter is 1, if the second product value is less than 1, the frame interval parameter is greater than 1, and the frame interval parameter is used to make the first product value greater than or equal to 1; if the frame interval parameter is 1 and the initial image output speed is greater than or equal to 1, determine the target scaling ratio based on the quotient of the initial image output speed and the package recommended speed; if the frame interval parameter is greater than 1, and / or, the initial image output speed is less than 1, determine the target scaling ratio as the initial scaling ratio.

[0248] Exemplarily, when the display module 912 displays the first sub - screen and the second sub - screen through the display interface, it is specifically configured to: start from the target starting coordinate of the display interface and sequentially display the first sub - screen and the second sub - screen; wherein, the target starting coordinate is determined based on the current end coordinate and the target zoom ratio, and the current end coordinate represents the end coordinate when the picture of the package to be detected was last displayed; if the target zoom ratio remains unchanged, the target starting coordinate remains unchanged; and / or, if the target zoom ratio increases, based on the current end coordinate, the target zoom ratio, and the stored zoom ratio, determine the interval pixel width between the target starting coordinate and the current end coordinate of the package to be detected, and determine the target starting coordinate based on the interval pixel width and the current end coordinate.

[0249] Exemplarily, when the processing module 911 obtains the target image output speed, it is specifically configured to: determine the pixel width of the undisplayed pixels corresponding to the package to be detected; wherein, each time a data shard of the package to be detected is newly added in the specified storage medium, the pixel width of the undisplayed pixels is increased based on the pixel width of the data shard; each time the second sub - data is selected from the image data based on the target image output speed, the pixel width of the undisplayed pixels is reduced based on the pixel width of the horizontal movement indicated by the target image output speed; if the pixel width of the undisplayed pixels is greater than the pixel width of the data shard and the package to be detected is not displayed on the display interface for the first time, then determine whether the pixel width of the undisplayed pixels is not greater than the product value of the obtained initial image output speed and the configured maximum time interval; if so, determine the stored image output speed as the target image output speed and store the target image output speed; and / or, if not, determine the initial image output speed as the target image output speed and store the target image output speed.

[0250] Exemplarily, when the processing module 911 obtains the target image output speed, it is specifically configured to: if the pixel width of the undisplayed pixels is not greater than the pixel width of the data shard and the stored image output speed is not 0, then determine the stored image output speed as the target image output speed and store the target image output speed;

[0251] and / or, if the stored image output speed is 0, then determine whether the frame interval is greater than the fixed number of frames; wherein, the fixed number of frames is determined based on the quotient of the pixel width of the data shard and the obtained recommended speed of the package.

[0252] If not, then add 1 to the frame interval, determine the target image output speed as 0, and store the target image output speed, and the initial value of the frame interval is 0; and / or, if so, determine the initial image output speed as the target image output speed, store the target image output speed, and update the frame interval to 0.

[0253] Exemplarily, the processing module 911 is further configured to obtain a third sub - screen corresponding to the package to be detected when the package to be detected is first displayed on the display interface; the display module 912 is further configured to display the third sub - screen through the display interface; wherein, the processing module 911 is further configured to select third sub - data from the image data stored in the specified storage medium based on the obtained target image output speed, and generate the third sub - screen based on the third sub - data.

[0254] Exemplarily, when the processing module 911 obtains the target image output speed, it specifically is configured to: determine the un - displayed pixel width corresponding to the package to be detected; if the un - displayed pixel width is greater than the pixel width of the data slice, then determine whether the un - displayed pixel width is greater than the product value of the obtained initial image output speed and the configured maximum time interval; if not, then determine the initial image output speed as the target image output speed, and store the target image output speed; and / or, if so, then determine the target image output speed based on the initial image output speed and the configured target value, and store the target image output speed; wherein, the target image output speed is greater than the initial image output speed, and the target value is greater than 0.

[0255] Based on the same application concept as the above - mentioned method, in an embodiment of the present application, an electronic device (such as a client) is proposed. Refer to Figure 9B as shown, it includes: a processor 921 and a machine - readable storage medium 922. The machine - readable storage medium 922 stores machine - executable instructions that can be executed by the processor 921; the processor 921 is configured to execute the machine - executable instructions to implement the screen display method disclosed in the above examples of the present application.

[0256] Based on the same application concept as the above - mentioned method, an embodiment of the present application further provides a machine - readable storage medium. A number of computer instructions are stored on the machine - readable storage medium. When the computer instructions are executed by a processor, the screen display method disclosed in the above examples of the present application can be implemented.

[0257] Wherein, the above - mentioned machine - readable storage medium can be any electronic, magnetic, optical or other physical storage device, and can contain or store information such as executable instructions, data, etc. For example, the machine - readable storage medium can be: RAM (Random Access Memory), volatile memory, non - volatile memory, flash memory, storage drives (such as hard disk drives), solid - state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof.

[0258] Based on the same application concept as the above method, an embodiment of the present application further provides a computer program product, which may include a computer program. When the computer program is executed by a processor, it can implement the screen display method disclosed in the above examples of the present application.

[0259] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0260] The above are only the embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A screen display method, characterized in that: Applied to a client, the image data of the package to be detected is stored in a designated storage medium of the client, and the method includes: Each time the displayed picture of the package to be detected displayed on the display interface is updated, the picture to be displayed corresponding to the package to be detected is obtained, and the picture to be displayed includes a first sub-picture and a second sub-picture; wherein, if the target zoom ratio of the package to be detected increases, the first sub-data corresponding to the displayed picture is selected from the image data, an original picture is generated based on the first sub-data, and the original picture is zoomed based on the target zoom ratio to obtain the first sub-picture; if the target zoom ratio remains unchanged, the first sub-picture is the displayed picture; wherein, based on the obtained target image output speed, the second sub-data is selected from the image data, and the second sub-picture is generated based on the second sub-data, and the target image output speed indicates the pixel width of the horizontal movement corresponding to the second sub-picture; Displaying the first sub-picture and the second sub-picture through the display interface; The second sub-picture is spliced ​​behind the first sub-picture.

2. The method according to claim 1, characterized in that The display interface includes a main viewing angle display area and a top-view viewing angle display area, and displaying the first sub-picture and the second sub-picture through the display interface includes: Displaying a first sub-picture of the main perspective and a second sub-picture of the main perspective in the main perspective display area; Displaying a first sub-picture from a top-down perspective and a second sub-picture from a top-down perspective in the top-down perspective display area; Among them, the image data includes main perspective image data and overhead perspective image data, the main perspective image data is used to obtain a first sub-picture of the main perspective and a second sub-picture of the main perspective, and the overhead perspective image data is used to obtain a first sub-picture of the overhead perspective and a second sub-picture of the overhead perspective.

3. The method according to claim 1, characterized in that The process of acquiring the target scaling ratio of the package to be detected includes: Each time the displayed image of the package to be detected is updated, determining whether a data slice of the package to be detected is newly added in the designated storage medium; wherein the image data of the package to be detected includes a plurality of data slices, the security inspection device sends each data slice to the client in turn, and the client stores each data slice in turn to the designated storage medium; If not, the stored zoom ratio is used as the target zoom ratio; And / or, if so, determining a target cropping value based on the cropping value of the newly added data slice and the cropping values ​​of each stored data slice, determining a package display height based on the target cropping value; determining an initial zoom ratio based on the package display height and the height of the viewing angle display area of ​​the display interface; and determining a target zoom ratio based on the initial zoom ratio.

4. The method according to claim 3, characterized in that The determining of the target clipping value based on the clipping value of the newly added data slice and the clipping values ​​of each stored data slice comprises: selecting a minimum upper clipping starting value from the upper clipping starting value of the newly added data slice and the upper clipping starting values ​​of each stored data slice, selecting a maximum lower clipping starting value from the lower clipping starting value of the newly added data slice and the lower clipping starting values ​​of each stored data slice, and determining the minimum upper clipping starting value and the maximum lower clipping starting value as the target clipping value; And / or, determining the package display height based on the target cropping value includes: determining the package display height based on the actual height of the package of the data slice, the minimum upper cropping starting value and the maximum lower cropping starting value; wherein, the actual height of the package represents the height of the image collected by the security inspection equipment, and the package display height represents the height of the image displayed in the viewing angle display area.

5. The method according to claim 3, characterized in that: The determining of the initial zoom ratio based on the package display height and the height of the viewing angle display area of ​​the display interface includes: calculating the ratio value between the height of the viewing angle display area of ​​the display interface and the package display height; if the ratio value is less than 1, determining the initial zoom ratio to be the ratio value; if the ratio value is not less than 1, determining the initial zoom ratio to be 1.

6. The method according to claim 3, characterized in that The determining the target zoom ratio based on the initial zoom ratio comprises: Calculate a first product value between a frame interval parameter, the initial zoom ratio and the obtained recommended package speed, and round down the first product value to obtain an initial image output speed; wherein the recommended package speed is used to indicate a pixel width of lateral movement; if a second product value between the initial zoom ratio and the recommended package speed is greater than 1, the frame interval parameter is 1; if the second product value is less than 1, the frame interval parameter is greater than 1, and the frame interval parameter is used to make the first product value greater than or equal to 1; If the frame interval parameter is 1 and the initial image output speed is greater than or equal to 1, the target zoom ratio is determined based on the quotient of the initial image output speed and the recommended package speed; If the frame interval parameter is greater than 1, and / or the initial image output speed is less than 1, the target zoom ratio is determined to be the initial zoom ratio.

7. The method according to any one of claims 1 to 6, characterized in that: The displaying the first sub-picture and the second sub-picture through the display interface includes: Starting from the target starting coordinates of the display interface, the first sub-screen and the second sub-screen are displayed in sequence; wherein the target starting coordinates are determined based on the current ending coordinates and the target zoom ratio, and the current ending coordinates represent the ending coordinates when the screen of the package to be detected was last displayed; Among them, if the target zoom ratio remains unchanged, the target starting coordinates remain unchanged; and / or, if the target zoom ratio increases, the interval pixel width between the target starting coordinates and the current ending coordinates of the package to be detected is determined based on the current ending coordinates, the target zoom ratio and the stored zoom ratio, and the target starting coordinates are determined based on the interval pixel width and the current ending coordinates.

8. The method according to any one of claims 1 to 5, characterized in that: The process of obtaining the target image output speed includes: Determine the undisplayed pixel width corresponding to the package to be detected; wherein, each time a data slice of the package to be detected is added to the designated storage medium, the undisplayed pixel width is increased based on the pixel width of the data slice; each time a second sub-data is selected from the image data based on the target image output speed, the undisplayed pixel width is reduced based on the pixel width of the lateral movement indicated by the target image output speed; If the undisplayed pixel width is greater than the pixel width of the data slice, and the package to be detected is not displayed on the display interface for the first time, then determining whether the undisplayed pixel width is not greater than the product value of the acquired initial image output speed and the configured maximum time interval; If so, the stored image output speed is determined as the target image output speed, and the target image output speed is stored; and / or, if not, the initial image output speed is determined as the target image output speed, and the target image output speed is stored.

9. The method according to claim 8, characterized in that The process of obtaining the target image output speed includes: If the undisplayed pixel width is not greater than the pixel width of the data slice, and the stored image output speed is not 0, the stored image output speed is determined as the target image output speed, and the target image output speed is stored; and / or, if the stored image output speed is 0, determining whether the frame interval is greater than a fixed frame number; wherein the fixed frame number is determined based on a quotient of a pixel width of a data slice and an acquired recommended package speed; wherein the recommended package speed is used to indicate a pixel width of lateral movement; If not, the frame interval is increased by 1, the target image output speed is determined to be 0, and the target image output speed is stored, and the initial value of the frame interval is 0; and / or, if yes, the initial image output speed is determined as the target image output speed, and the target image output speed is stored, and the frame interval is updated to 0.

10. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the package to be detected is displayed on the display interface for the first time, obtaining a third sub-picture corresponding to the package to be detected, and displaying the third sub-picture through the display interface; wherein, based on the acquired target image output speed, third sub-data is selected from the image data stored in the designated storage medium, and the third sub-picture is generated based on the third sub-data; The process of obtaining the target image output speed includes: Determine the undisplayed pixel width corresponding to the package to be detected; If the undisplayed pixel width is greater than the pixel width of the data slice, determining whether the undisplayed pixel width is greater than the product value of the acquired initial image output speed and the configured maximum time interval; If not, the initial image output speed is determined as the target image output speed, and the target image output speed is stored; And / or, if so, determining a target image output speed based on the initial image output speed and the configured target value, and storing the target image output speed; wherein the target image output speed is greater than the initial image output speed.

11. A screen display device, characterized in that: Applied to a client, the image data of the package to be detected is stored in a designated storage medium of the client, and the device comprises: a processing module, configured to obtain a to-be-displayed picture corresponding to the to-be-detected package each time the displayed picture of the to-be-detected package displayed on the display interface is updated, the to-be-displayed picture including a first sub-picture and a second sub-picture; wherein, when obtaining the first sub-picture, if the target zoom ratio of the to-be-detected package increases, the first sub-data corresponding to the displayed picture is selected from the image data, an original picture is generated based on the first sub-data, and the original picture is zoomed based on the target zoom ratio to obtain the first sub-picture; if the target zoom ratio remains unchanged, the first sub-picture is the displayed picture; wherein, when obtaining the second sub-picture, the second sub-data is selected from the image data based on the acquired target image output speed, the second sub-picture is generated based on the second sub-data, and the target image output speed indicates the pixel width of the lateral movement corresponding to the second sub-picture; A display module, configured to display the first sub-picture and the second sub-picture through the display interface; The second sub-picture is spliced ​​behind the first sub-picture.

12. An electronic device, characterized in that: include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is used to execute machine executable instructions to implement the method described in any one of claims 1-10.

Citation Information

Patent Citations

  • Display device and video image scaling method

    CN112243148A

  • Image display control method and device, electronic equipment and readable medium

    CN118034626A