Image display method, device, electronic device and storage medium
By displaying vertical fragments of the wrapped image horizontally in the display area of the security check machine, and covering the image with the longest display time when the display area is occupied, the problem of short residence time of the wrapped image data is solved, and a clearer and more accurate image display is achieved.
Patent Information
- Application Number
- CN202110818852.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-20
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-07-20
AI Technical Summary
The wrapped image data in the security check machine stays on the display screen for a short time, resulting in unclear images, and the existing technology has failed to effectively solve this problem.
By sequentially displaying vertical shards of the wrapped image acquired in real time horizontally in the display area, and when the display area is all occupied, the image vertical shard with the longest display time is covered with the new image vertical shard to increase the residence time of the image data.
This achieves a longer residence time for wrapping image data in the display area, improves the clarity and accuracy of the image, and reduces the visual fatigue of security personnel.
Smart Images

Figure CN113760159B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of security inspection machines, and in particular to an image display method, device, electronic device and storage medium. Background Art
[0002] The security inspection machine can be used to collect X-ray images of packages, and then provide the collected package images to security inspectors so that they can check the items carried in the packages for contraband. At present, when using security inspection machines to check for prohibited items, the package is often displayed by passing through the X-ray machine. In the moving package screen, since the package moves with the conveyor belt, the image data of each package stays on the display screen for a shorter time than the time the security inspector views the package image, resulting in unclear display of the package image data.
[0003] Currently, no effective solution has been proposed to solve the problem in the related art that the image data of the package is unclear because the image data stays on the display screen for a short time and moves on the display screen. Summary of the invention
[0004] In this embodiment, an image display method, device, electronic device and storage medium are provided to solve the problem in the related art that the image data is unclear because the wrapped image data stays on the display screen for a short time and moves on the display screen.
[0005] In a first aspect, an image display method is provided in this embodiment, which is used for displaying a package image of a security inspection machine, comprising:
[0006] In the display area, vertical slices of the image of the package acquired in real time are sequentially displayed horizontally;
[0007] When the display area is completely occupied and a new vertical image slice needs to be displayed, the new vertical image slice is used to cover the vertical image slice with the longest display time in the picture.
[0008] In some of the embodiments, sequentially horizontally displaying vertical slices of the image of the package acquired in real time in the display area includes:
[0009] When the package moves from left to right, the vertical slices of the image acquired in real time are sequentially displayed on the right in the display area;
[0010] When the package moves from right to left, the vertical slices of the image acquired in real time are displayed sequentially on the left in the display area.
[0011] In some of the embodiments, the display area includes two parts, namely an upper half screen and a lower half screen.
[0012] In some of the embodiments, the step of sequentially horizontally displaying vertical slices of the image of the package acquired in real time in the display area further includes:
[0013] If the upper half of the screen is completely occupied and there are still vertical slices of the image to be displayed, the package to which the vertical slice of the image to be displayed belongs is used as the package to be displayed, and all the vertical slices of the image in the package to be displayed are horizontally displayed in the lower half of the screen.
[0014] In some embodiments, when the display area is completely occupied and a new vertical image slice needs to be displayed, using the new vertical image slice to cover the vertical image slice with the longest display time in the picture includes:
[0015] In the process of sequentially horizontally displaying the vertical slices of the image on the lower half screen, if the lower half screen is completely occupied, determining the occupied area of the vertical slice of the image that has been displayed for the longest time in the upper half screen as the target coverage area;
[0016] The image vertical slice on the target coverage area is cleared, and all the image vertical slices of the package to which the new image vertical slice belongs are horizontally displayed on the target coverage area.
[0017] In some of the embodiments, the vertical slice of the image of the package acquired in real time is at least one column of image data of the package collected in real time from an X-ray receiving plate.
[0018] In a second aspect, an image display device is provided in this embodiment for displaying a package image of a security inspection machine. The image display device includes: a first display module and a second display module, wherein:
[0019] The first display module is used to sequentially display vertical slices of the image of the package acquired in real time horizontally in the display area;
[0020] The second display module is used to cover the image vertical slice with the longest display time in the picture with the new image vertical slice when the display area is completely occupied and there is a new image vertical slice to be displayed.
[0021] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image display method described in the first aspect when executing the computer program.
[0022] In a fourth aspect, a computer device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the image display method described in the first aspect when executing the computer program.
[0023] In a fifth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the image display method described in the first aspect is implemented.
[0024] The above-mentioned method, device, electronic device and storage medium for image display are used to display the vertical slices of the image of the package acquired in real time in the display area horizontally in sequence. When the display area is completely occupied and there are new vertical slices of the image to be displayed, the new vertical slice of the image is used to cover the vertical slice of the image with the longest display time in the screen. It realizes the display of the package staying in the display area, and realizes the replacement of the vertical slices of the image in the display area based on the display time, thereby increasing the time that the image data of the package stays in the display area, and can provide clear and accurate image data for security personnel.
[0025] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 It is a hardware structure block diagram of a terminal of an image display method of the related art;
[0028] Figure 2 is a flow chart of the image display method of this embodiment;
[0029] Figure 3 is a schematic diagram of displaying vertical slices of an image in a display area according to this embodiment;
[0030] Figure 4 is another schematic diagram showing vertical slices of the package image of the present embodiment;
[0031] Figure 5 is another schematic diagram showing vertical slices of the package image of the present embodiment;
[0032] Figure 6 is a flow chart of the X-ray package vertical slice display method of this embodiment;
[0033] Figure 7 It is a block diagram of the structure of the image display device of this embodiment. DETAILED DESCRIPTION
[0034] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0035] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0036] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the image display method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0037] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the image display method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0038] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0039] In this embodiment, an image display method is provided for displaying package images of a security inspection machine. Figure 2 is a flow chart of the image display method of this embodiment, such as Figure 2 As shown, the process includes the following steps:
[0040] Step S210: vertical slices of the image of the package acquired in real time are sequentially displayed horizontally in the display area.
[0041] The display area may be any display screen of an electronic display, and the display area is used to display the image data of the package entering the security inspection machine, so that the security inspector can check the information of the items inside the package, thereby determining whether there are prohibited items inside the package. The image data of the package may be the X-ray energy data of the package obtained by scanning the package with X-rays inside the security inspection machine, and then the image data inside the package obtained by conversion. Furthermore, in the actual scenario of security inspection of the package, multiple packages can be sequentially passed through the entrance of the security inspection machine through a conveyor belt and sent into the security inspection machine for inspection. The image data inside the package is mainly obtained by converting the X-ray energy data of the package received by the receiving plate of the security inspection machine, and the security inspection machine can be installed on the conveyor belt to realize the inspection of the package therein. Therefore, in order to increase the residence time of the image data of each package in the display area, the image data of the package collected by the security inspection machine can be divided into uniform image vertical slices according to one or more columns of pixels, and then displayed horizontally in the display area.
[0042] Specifically, the width of the receiving board can be set to the height of the vertical slice of the image, and after the package enters the security inspection machine and the energy data is detected by the receiving board, the image data corresponding to the preset number of column energy data received by the receiving board is used as a vertical slice of the image, that is, the width of a vertical slice of the image can be the width of one or more pixels. In addition, the display mode of the vertical slice of the image in the display area is determined by the moving direction of the package relative to the security inspection machine. According to the moving direction of the package relative to the security inspection machine, the position of the vertical slice of the image in the display area is specifically set to be displayed side by side in sequence. Among them, the vertical slices of the image belonging to the same package can be displayed adjacently in the display area in the order of collection. In addition, the vertical slice of the image is fixedly displayed at a certain position in the display area. When all the vertical slices of the image of the package are displayed adjacently in the display area, the image data of the package is relatively static in the display area, so that the image data blur caused by the movement of the package can be avoided, which causes visual fatigue to the security inspectors.
[0043] In addition, in order to increase the residence time of the packaged image data in the display area, the display area can also be partitioned. For example, when the height of the display area is sufficient relative to the height of the vertical slice of the image, the display area can be partitioned in the vertical direction. Specifically, the display area can be divided into two even upper and lower parts, three upper, middle and lower parts, or other more parts according to the height of the display area. After the display area is partitioned, the display rules of the vertical slices of the image in the partitions of the display area can be set according to the visual laws and visual habits of the security personnel. For example, after the display area is divided into the upper half screen and the lower half screen, the vertical slices of the image can be displayed horizontally in the upper half screen in sequence, and after the upper half screen is fully occupied, the lower half screen is selected for display. It can be understood that other display rules can also be selected to display the vertical slices of the image in different partitions of the display area, which is not specifically limited here.
[0044] Step S220: When the display area is completely occupied and a new vertical image slice needs to be displayed, the new vertical image slice is used to cover the vertical image slice with the longest display time in the picture.
[0045] Since the size of the display area is limited, and the image vertical slices can be continuously generated according to the new packages entering the security inspection machine during the security inspection process, when there are new image vertical slices to be displayed, it is necessary to select the displayed image vertical slices in the display area to cover them. Specifically, in order to increase the display time of the image vertical slices in the display area, the display time of all the displayed image vertical slices in the display area can be compared, and the image vertical slice with the longest display time can be selected and covered with the new image vertical slice, so that the new image vertical slice can be displayed in the display area.
[0046] Furthermore, in order to improve the continuity of the image data of the package in the display area, when the display area is fully occupied, one or more image vertical slices of the package can be selected from the displayed image vertical slices according to the display time of the package in the display area to cover, so as to display all the image vertical slices of the package to which the new image vertical slice belongs. Wherein, when the display area is partitioned, after all the partitions in the display area are occupied in turn, the image vertical slices can be selected to cover in turn starting from the partition to which the image vertical slice with the longest display time belongs, so as to realize the cyclic display of different image vertical slices in different partitions along with the new corresponding image data generated in the security inspection machine. For example, when the upper half screen and the lower half screen of the display area are fully occupied successively, one or more packages with the longest display time can be selected in turn from the upper half screen and covered with the new image vertical slice, and after all the image vertical slices in the upper half screen are updated, one or more packages with the longest display time can be selected in turn from the lower half screen and covered with the new image vertical slice.
[0047] Therefore, the time a package stays in the display area is determined by the occupied state of the display area. If the display area is not completely occupied, the package can continue to be displayed horizontally in the display area. Compared with the related art that sequentially displays the stay time of each package in the moving package screen in the display area, the time each package stays in the display area in this embodiment is longer, so that the item information of each package can be displayed more clearly and accurately, and the visual fatigue of the security inspectors is further alleviated.
[0048] In the above steps S210 to S220, the vertical slices of the image of the package acquired in real time are sequentially displayed horizontally in the display area. When the display area is completely occupied and there are new vertical slices of the image to be displayed, the new vertical slice of the image is used to cover the vertical slice of the image with the longest display time in the screen. This realizes the display of the package staying in the display area, and realizes the replacement of the vertical slices of the image in the display area based on the display time, thereby increasing the time that the image data of the package stays in the display area, and can provide clear and accurate image data for security personnel.
[0049] Further, in one embodiment, based on the above step S210, in the display area, the vertical slices of the image of the package acquired in real time are sequentially displayed horizontally, which specifically includes the following steps:
[0050] Step S211, when the package moves from left to right, the vertical slices of the image acquired in real time are displayed in sequence on the right in the display area.
[0051] Specifically, when the package moves from left to right, the images are vertically allocated and displayed on the right side of the display area in sequence according to the order of the image vertical slices acquired in real time. For example, when the display area is empty, the first image vertical slice acquired first can be displayed on the rightmost side of the display area. When the display area is not empty, the newly acquired image vertical slice can be displayed at the adjacent position to the left of the image vertical slice already displayed in the display area.
[0052] Step S212, when the package moves from right to left, the vertical slices of the image acquired in real time are displayed sequentially on the left in the display area.
[0053] Likewise, when the package moves from right to left, the packages acquired in real time may be displayed horizontally in sequence on the right side of the display area. Figure 3 It is a schematic diagram of the vertical slices of the target package image in the display area when the target package moves from right to left. Figure 3As shown, the target package includes image vertical slices 301, 302, 303, 304, 305 and 306, wherein the image vertical slices 301 and 302 are displayed on the leftmost side of the upper half of the display area. When the security inspection machine sequentially obtains the six image vertical slices of the target package, the six image vertical slices can be horizontally displayed sequentially on the left side of the display area 32 in the order of acquisition, as shown by the direction of the arrows connecting the image vertical slices 303 to 306. Since the image contents on adjacent image vertical slices are continuous, after all the image vertical slices of the package are displayed in the display area, static and continuous image data relative to the display area can be provided to the security inspector.
[0054] In the above steps S211 to S212, by determining the display mode of the vertical slices of the image in the display area according to the moving direction of the package, the continuity of the image data can be improved while providing the security inspectors with image data that conforms to the visual law.
[0055] In addition, in one embodiment, the display area includes two parts, namely, the upper half screen and the lower half screen. Dividing the display area into the upper half screen and the lower half screen can, on the one hand, improve the utilization rate of the display area, and display more vertical slices of images in one display area, so as to adapt to the actual application scenario with a large number of packages; on the other hand, it can also increase the display time of the image information of each package in the display area, thereby providing sufficient time for the security personnel to view the information of the items inside the package through the display area, thereby improving the accuracy of the item detection of the package.
[0056] In addition, the display area can be divided into zones according to specific application scenarios, such as the display screen size of the security inspection machine. The more zones the display area has, the longer the vertical slice display time of the package image will be, but the screen of each zone is relatively small, which is not convenient for security inspectors to observe. Preferably, the display area can be divided into upper and lower parts, which can extend the package display time while ensuring the clarity of human eye observation.
[0057] Further, in one embodiment, based on the above step S210, in the display area, the vertical slices of the image of the package acquired in real time are sequentially displayed horizontally, and the following steps may also be included:
[0058] Step S213, if the upper half of the screen is completely occupied and there are still vertical slices of the image to be displayed, the package to which the vertical slice of the image to be displayed belongs is used as the package to be displayed, and all the vertical slices of the image in the package to be displayed are displayed horizontally in the lower half of the screen.
[0059] Among them, when the display area is divided into the upper half screen and the lower half screen, the image vertical slices can be displayed preferentially in the upper half screen according to the visual rules. Specifically, when the package moves from left to right, the image vertical slices can be displayed in sequence on the left side of the upper half screen. When the upper half screen is fully occupied and there are image vertical slices to be displayed, the image vertical slices to be displayed can belong to the same package as some of the image vertical slices that have been displayed in the upper half screen, or can be a package that is not displayed in the upper half screen. In this case, the package to which the image vertical slice to be displayed belongs can be used as the package to be displayed, and all the image vertical slices of the package to be displayed can be displayed in the lower half screen. Figure 4 is a schematic diagram of displaying vertical slices of a wrapped image in this embodiment, such as Figure 4 As shown, when the package moves from right to left, the image vertical slices of packages 401 to 403 acquired in real time are sequentially displayed on the left side of the upper half screen. When the image data of package 404 exceeds the display boundary of the display area, the vertical slices of the image of package 404 that have been displayed on the upper half screen are moved to the left side of the lower half screen for horizontal display, and the remaining image vertical slices of package 404 that are not displayed continue to be sequentially displayed on the lower half screen.
[0060] Specifically, if some of the image vertical slices in the package to be displayed are already displayed in the upper half of the screen, the image vertical slices in the package to be displayed that are already displayed in the upper half of the screen can be first moved to the lower half of the screen. Further, according to the moving direction of the package, the image vertical slices that have been displayed in the upper half of the screen can be moved to the left or right of the lower half of the screen for display in the order of display in the upper half of the screen. In addition, if there are no image vertical slices that have been displayed in the upper half of the screen in the package to be displayed, the image vertical slices of the package to be displayed can be directly displayed horizontally in the lower half of the screen in sequence.
[0061] In addition, in one embodiment, based on the above step S220, when the display area is completely occupied and a new vertical image slice needs to be displayed, the vertical image slice with the longest display time in the screen is covered with the new vertical image slice, which specifically includes the following steps:
[0062] Step S221, when the lower half screen is completely occupied while the vertical image slices are displayed horizontally in sequence, the occupied area of the vertical image slice with the longest display time is determined in the upper half screen as the target coverage area.
[0063] Step S222: clear the image vertical slice on the target coverage area, and horizontally display all the image vertical slices of the package to which the new image vertical slice belongs on the target coverage area.
[0064] Specifically, according to the size of the area occupied by all the image vertical slices of the package to which the new image vertical slice belongs, the image vertical slices of one or more packages on the target coverage area are cleared to horizontally display all the image vertical slices of the package to which the new image vertical slice belongs on the target coverage area. Figure 5 As shown, when the upper half of the screen is occupied by other packages and package 503, and the lower half of the screen is occupied by packages 504 to 507, and there is a package 508 to be displayed, the vertical image slices corresponding to the other packages in the upper half of the screen can be cleared, so that all the vertical image slices of package 508 can be moved to the area occupied by the other packages for display, wherein the area occupied by package 508 can be the area occupied by one or more other packages.
[0065] In the above steps S221 to S222, when the lower half of the screen is fully occupied, the occupied area of the image vertical slice of the package with the longest display time is determined in the upper half of the screen as the target coverage area, and the image vertical slices on the target coverage area are cleared, so that all the image vertical slices of the package to which the new image vertical slice belongs are displayed on the target coverage area, thereby increasing the display time of the image vertical slices of the package on the display area.
[0066] Additionally, in one embodiment, the vertical slice of the image of the package acquired in real time is at least one column of image data of the package acquired in real time from the X-ray receiving plate.
[0067] In the above steps S210 to S222, when the package moves from left to right, the image vertical slices acquired in real time are displayed sequentially on the right in the display area, and when the package moves from right to left, the image vertical slices acquired in real time are displayed sequentially on the left in the display area, thereby improving the continuity of the image data of the package; the display area is divided into the upper half screen and the lower half screen, thereby improving the utilization rate of the display area for the image vertical slices and increasing the display time of the image vertical slices in the display area; when the display area is fully occupied and there are new image vertical slices to be displayed, all image vertical slices of the package to which the new image vertical slice belongs are used to cover all image vertical slices in the target coverage area, thereby completing the update of the image data of the package in the display area, and increasing the time for each package to display the image data in the display area, thereby providing clear and accurate image data for security inspectors and alleviating their visual fatigue.
[0068] This embodiment also provides an X-ray package vertical slice display method. Figure 6 is a flow chart of the method, such as Figure 6 As shown, the process includes the following steps:
[0069] Step S610, start packet passing;
[0070] Step S620, collecting X-ray package vertical slices;
[0071] Step S630, displaying the vertical slice on the left or right side of one half screen of the display area;
[0072] Step S640, displaying other vertical slices in sequence in the horizontal direction of the half screen;
[0073] Step S650, determining whether there is a new vertical slice that exceeds the display boundary of the display area, if so, executing step S660, otherwise executing step S640;
[0074] Step S660, determining whether there is a remaining area in the other half of the display area, if yes, executing step S670, otherwise executing step S680;
[0075] Step S670, moving the new vertical slice to the other half of the screen for display;
[0076] Step S680, clear all vertical slices of the package with the longest display time in the other half screen, and execute step S670.
[0077] In this embodiment, an image display device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit" and the like used below can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0078] Figure 7 is a structural block diagram of the image display device of this embodiment, such as Figure 7 As shown, the device includes: a first display module 72 and a second display module 74, wherein:
[0079] A first display module 72, used to horizontally display vertical slices of the image of the package acquired in real time in the display area in sequence;
[0080] The second display module 74 is used to cover the image vertical slice with the longest display time in the picture with the new image vertical slice when the display area is fully occupied and there is a new image vertical slice to be displayed.
[0081] The image display device 70 displays the image vertical slices of the package acquired in real time in the display area in sequence. When the display area is completely occupied and there are new image vertical slices to be displayed, the new image vertical slices are used to cover the image vertical slice with the longest display time in the screen. It realizes the display of the package staying in the display area, and realizes the replacement of the image vertical slices in the display area based on the display time, thereby increasing the time that the image data of the package stays in the display area, and can provide clear and accurate image data for security inspectors.
[0082] In one embodiment, the first display module 72 is also used to display the vertical slices of the image acquired in real time in sequence on the right in the display area when the package moves from left to right; when the package moves from right to left, the vertical slices of the image acquired in real time are displayed in sequence on the left in the display area.
[0083] In one embodiment, the display area includes two parts, namely, an upper half screen and a lower half screen.
[0084] In one embodiment, the first display module 72 is also used to, if the upper half of the screen is fully occupied and there are still vertical slices of the image to be displayed, use the package to which the vertical slice of the image to be displayed belongs as the package to be displayed, and display all the vertical slices of the image in the package to be displayed horizontally in the lower half of the screen.
[0085] In one embodiment, the second display module 74 is also used to, in the process of horizontally displaying the image vertical slices in sequence in the lower half of the screen, if the lower half of the screen is completely occupied, determine the occupied area of the image vertical slice of the package with the longest display time in the upper half of the screen as the target coverage area; clear the image vertical slice on the target coverage area, and horizontally display all the image vertical slices of the package to which the new image vertical slice belongs on the target coverage area.
[0086] In one embodiment, the vertical slice of the image of the package acquired in real time is at least one column of image data of the package collected in real time from the X-ray receiving plate.
[0087] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0088] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0089] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0090] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0091] In the display area, vertical slices of the image of the package acquired in real time are sequentially displayed horizontally;
[0092] When the display area is completely occupied and a new vertical image slice needs to be displayed, the new vertical image slice is used to cover the vertical image slice with the longest display time in the picture.
[0093] In some embodiments, when the processor executes the computer program, the processor further implements the following steps:
[0094] When the package moves from left to right, the real-time acquired image is vertically sliced and displayed in sequence on the right in the display area;
[0095] When the package moves from right to left, the real-time acquired image is vertically sliced and displayed in sequence on the left in the display area.
[0096] In some embodiments, the display area includes two parts, namely, an upper half screen and a lower half screen.
[0097] In some embodiments, when the processor executes the computer program, the processor further implements the following steps:
[0098] If the entire upper half of the screen is occupied and there are still vertical slices of images to be displayed, the package to which the vertical slices of the images to be displayed belong is used as the package to be displayed, and all the vertical slices of the images in the package to be displayed are displayed horizontally in the lower half of the screen.
[0099] In some embodiments, when the processor executes the computer program, the processor further implements the following steps:
[0100] In the process of horizontally displaying the vertical slices of the image in the lower half screen in sequence, if the lower half screen is completely occupied, then the occupied area of the vertical slice of the image with the longest display time is determined in the upper half screen as the target coverage area;
[0101] The image vertical slice on the target coverage area is cleared, and all the image vertical slices of the package to which the new image vertical slice belongs are horizontally displayed on the target coverage area.
[0102] In some embodiments, the vertical slices of the image of the package acquired in real time are at least one column of image data of the package collected in real time from the X-ray receiving plate.
[0103] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.
[0104] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an image display method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0105] In addition, in combination with the image display method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the image display method. The storage medium stores a computer program, and when the computer program is executed by a processor, any image display method in the above embodiments is implemented.
[0106] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0107] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0108] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0109] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. An image display method, used for package image display of a security inspection machine, characterized in that: include: In the display area, vertical slices of the image of the package acquired in real time are sequentially displayed horizontally; the display area includes two parts, namely, the upper half screen and the lower half screen; In the case where the display area is completely occupied and a new vertical image slice needs to be displayed, the vertical image slice with the longest display time in the screen is covered by the new vertical image slice; comprising: in the process of horizontally displaying the vertical image slices in the lower half screen in sequence, if the lower half screen is completely occupied, determining the occupied area of the vertical image slice wrapped with the longest display time in the upper half screen as the target coverage area; The image vertical slice on the target coverage area is cleared, and all the image vertical slices of the package to which the new image vertical slice belongs are horizontally displayed on the target coverage area.
2. The image display method according to claim 1, characterized in that: The vertical slices of the image of the package acquired in real time are sequentially displayed horizontally in the display area, including: When the package moves from left to right, the vertical slices of the image acquired in real time are sequentially displayed on the right in the display area; When the package moves from right to left, the vertical slices of the image acquired in real time are displayed sequentially on the left in the display area.
3. The image display method according to claim 1, characterized in that: The method of sequentially horizontally displaying the vertical slices of the image of the package acquired in real time in the display area also includes: If the upper half of the screen is completely occupied and there are still vertical slices of the image to be displayed, the package to which the vertical slice of the image to be displayed belongs is used as the package to be displayed, and all the vertical slices of the image in the package to be displayed are horizontally displayed in the lower half of the screen.
4. The image display method according to claim 1, characterized in that: The vertical slice of the image of the package acquired in real time is at least one column of image data of the package collected in real time from the X-ray receiving plate.
5. An image display device, used for package image display of a security inspection machine, characterized in that: The image display device comprises: a first display module and a second display module, wherein: The first display module is used to horizontally display vertical slices of the image of the package acquired in real time in the display area in sequence; the display area includes two parts, an upper half screen and a lower half screen respectively; The second display module is used to cover the image vertical slice with the longest display time in the picture with the new image vertical slice when the display area is completely occupied and there is a new image vertical slice to be displayed; comprising: In the process of horizontally displaying the image vertical slices in the lower half screen in sequence, if the lower half screen is completely occupied, the occupied area of the image vertical slice of the package with the longest display time is determined in the upper half screen as the target coverage area; the image vertical slices on the target coverage area are cleared, and all image vertical slices of the package to which the new image vertical slice belongs are horizontally displayed on the target coverage area.
6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the image display method according to any one of claims 1 to 4.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the image display method according to any one of claims 1 to 4 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the image display method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
VR-based method and VR-based device of processing images
CN106909221A
Image display method and device, storage medium and electronic device
CN108632676A