CN113079402B - Image display method, device, equipment and storage medium - Google Patents

Image display method, device, equipment and storage medium Download PDF

Info

Publication number
CN113079402B
CN113079402B CN202110342380.7A CN202110342380A CN113079402B CN 113079402 B CN113079402 B CN 113079402B CN 202110342380 A CN202110342380 A CN 202110342380A CN 113079402 B CN113079402 B CN 113079402B
Authority
CN
China
Prior art keywords
image data
queue
display
image
thread
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110342380.7A
Other languages
Chinese (zh)
Other versions
CN113079402A (en
Inventor
李莹光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Bodong Rongying Medical Technology Co ltd
Original Assignee
Suzhou Bodong Rongying Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Bodong Rongying Medical Technology Co ltd filed Critical Suzhou Bodong Rongying Medical Technology Co ltd
Priority to CN202110342380.7A priority Critical patent/CN113079402B/en
Publication of CN113079402A publication Critical patent/CN113079402A/en
Application granted granted Critical
Publication of CN113079402B publication Critical patent/CN113079402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses an image display method, an image display device, image display equipment and a storage medium. The method comprises the following steps: acquiring original image data acquired by an image data acquisition end in real time through a first thread, and placing the original image data into the bottom of a first queue; acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue; and detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue according to the ordering of the image data in the second queue for display. Through the image cache of the double queues, the dependence of image display on the image acquisition speed is solved, the frequency of image display can be set according to the needs, real-time image display can be carried out according to the preset image display frequency, and the smoothness of display is ensured.

Description

Image display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of image display, and in particular, to an image display method, apparatus, device, and storage medium.
Background
Currently, numerous fields relate to image acquisition and real-time display technologies, for example, in medical instrument apparatuses. The existing real-time display method for image acquisition usually displays images according to the speed of image acquisition, and each time a frame is acquired, the frame is transmitted to a display end, and the display end displays the latest transmitted image. However, since the image display speed depends on the image acquisition speed, when the image acquisition is too fast, the display speed is fast, and the occupation degree of computing resources is high; when the image acquisition is too slow, the blocking appears in the display, and the look and feel and judgment are affected.
Disclosure of Invention
In view of the foregoing, an object of the present invention is to provide an image display method, apparatus, device, and medium capable of displaying a real-time image according to a preset image display frequency. The specific scheme is as follows:
in a first aspect, the present application discloses an image display method, including:
acquiring original image data acquired by an image data acquisition end in real time through a first thread, and placing the original image data into the bottom of a first queue;
acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue;
and detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue according to the ordering of the image data in the second queue for display.
Optionally, the acquiring, by the second thread, the first image data of the top of the first queue in real time includes:
acquiring first image data from the top of the first queue through the second thread according to the configuration of a preset thread lock;
wherein the thread lock is a thread lock that performs dequeuing operations of the first queue for the first thread and the second thread performs operations of acquiring first image data of a top of the first queue.
Optionally, the image display method further includes:
and setting the first queue and the second queue as circulating queues according to the memory condition of the equipment.
Optionally, the selecting target image data from the second queue for displaying includes:
performing image data processing on the target image data to obtain corresponding target image frames, and playing the target image frames through a display screen of the display end;
wherein the image data processing includes any one or more of coordinate conversion, color conversion, image registration, and data reconstruction.
Optionally, the selecting target image data from the second queue for displaying includes:
and if the display end detects that the second queue is empty, backtracking and playing the acquired last frame of target image.
Optionally, in the process of acquiring the original image data acquired by the image data acquisition end in real time through the first thread, the method further includes:
acquiring original image data and a corresponding time stamp acquired by the image data acquisition end in real time through the first thread;
correspondingly, after the second queue is detected by the display end according to the preset display frequency, the method further comprises the following steps:
and selecting the image data closest to the current time according to the time stamp to display.
Optionally, after the acquiring, by the second thread, the first image data of the top of the first queue in real time, the method further includes:
deleting, by the first thread, the first image data from the first queue;
after selecting the target image data from the second queue for display according to the ordering of the image data in the second queue, the method further comprises:
and deleting the target image data and the image data sequenced before the target image data from the second queue through the second thread.
In a second aspect, the present application discloses an image display apparatus comprising:
the first queue image acquisition module is used for acquiring original image data acquired by the image data acquisition end in real time through a first thread and placing the original image data into the bottom of the first queue;
the second queue image acquisition module is used for acquiring first image data at the top of the first queue in real time through a second thread and placing the first image data at the bottom of the second queue;
the image display module is used for detecting the second queue through the display end according to a preset display frequency, and selecting target image data from the second queue to display according to the ordering of the image data in the second queue.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and a processor for executing the computer program to implement the aforementioned image display method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by the processor, implements the aforementioned image display method.
In the application, original image data acquired by an image data acquisition end are acquired in real time through a first thread, and the original image data are put into the bottom of a first queue; acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue; and detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue according to the ordering of the image data in the second queue for display. Therefore, the dependency of image display on the image acquisition speed is solved through the image cache of the double queues, the frequency of the image display can be set according to the requirement, real-time image display can be carried out according to the preset image display frequency, and the smoothness of display is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an image display method provided in the present application;
FIG. 2 is a schematic diagram of an image display system according to the present disclosure;
FIG. 3 is a flowchart of a specific image display method provided in the present application;
fig. 4 is a schematic structural diagram of an image display device provided in the present application;
fig. 5 is a block diagram of an electronic device provided in the present application.
Detailed Description
In the prior art, image display is performed according to the speed of image acquisition, and each time a frame is acquired, the frame is transmitted to a display end, and the display end displays the latest transmitted image. However, since the image display speed depends on the image acquisition speed, when the image acquisition is too fast, the display speed is fast, and the occupation degree of computing resources is high; when the image acquisition is too slow, the blocking appears in the display, and the look and feel and judgment are affected. In order to overcome the technical problems, the application provides an image display method which can display real-time images according to preset image display frequency and improve the smoothness of image display.
The embodiment of the application discloses an image display method, referring to fig. 1, the method may include the following steps:
step S11: and acquiring original image data acquired by an image data acquisition end in real time through a first thread, and placing the original image data into the bottom of a first queue.
In this embodiment, the image data acquisition end is first detected continuously by the first thread, and each image data acquired by the acquisition end is put into the bottom of the first queue. The first queue may adopt a sequential storage structure, and a first-in first-out image storage and reading mode, for example, as shown in fig. 2, the first thread stores the original image data acquired from the image data acquisition end each time at the bottom of the first queue.
Step S12: and acquiring the first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue.
In this embodiment, the top of the first queue is continuously detected by the second thread, and when the top of the first queue has image data, the image data at the top at this time, i.e. the first image data, is stored at the bottom of the second queue; the second queue can adopt a sequential storage structure, adopts a first-in first-out image storage and reading mode, and stores the first image data acquired each time at the bottom of the second queue; for example, as shown in fig. 2, the first image data acquired by the second thread from the top of the first queue is deposited to the bottom of the second queue. It can be understood that the first queue and the second queue belong to two threads, the operation of each other is not affected, and the first queue only needs to concentrate on matching with the image data acquisition end, so that each image data acquired by the acquisition end can be ensured to be stored.
In this embodiment, after the acquiring, by the second thread, the first image data at the top of the first queue in real time, the method may further include: and deleting the first image data from the first queue through the first thread. After the second thread puts the first image data contained at the top of the first queue into the second queue, the top of the first queue deletes the first image data, and when the first queue is in a sequential storage structure, the rest image data in the first queue sequentially moves forward.
In this embodiment, the image display method may further include: and setting the first queue and the second queue as circulating queues according to the memory condition of the equipment. It can be understood that if the memory resources of the device to which the above image display method is applied are smaller, the first queue and the second queue may be set to be circular queues when designing the queues, so as to prevent storage from crossing the boundary.
In this embodiment, the acquiring, by the second thread, the first image data at the top of the first queue in real time may include: acquiring first image data from the top of the first queue through the second thread according to the configuration of a preset thread lock; wherein the thread lock is a thread lock that performs dequeuing operations of the first queue for the first thread and the second thread performs operations of acquiring first image data of a top of the first queue. It is understood that the thread lock is a thread lock that performs a dequeuing operation of the first queue for the first thread, and the second thread performs an operation of acquiring the first image data of the top of the first queue. That is, the thread lock technique is employed when the first image data at the top of the first queue is deposited at the bottom of the second queue, thereby avoiding the impact on the first queue.
Step S13: and detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue according to the ordering of the image data in the second queue for display.
In this embodiment, the display end detects the second queue according to a preset display frequency, and reads the target image data from the second queue according to the ordering of the image data in the second queue for display. It can be understood that by setting the display frequency, the display end may select the image data from the second queue according to the display frequency to display, and may select the target image data from several image data recently enqueued according to the ordering of the image data in the second queue, for example, the second queue is in a first-in first-out storage and reading manner, if 100 image data are sequentially arranged in the queue, the 98 th, 99 th or 100 th image data may be selected as the target image data to display. Therefore, the image display speed in the embodiment can be inconsistent with the image acquisition speed, and the image display of the display end meets the comfort of looking.
In this embodiment, after selecting the target image data from the second queue for displaying according to the ordering of the image data in the second queue, the method may further include: and deleting the target image data and the image data sequenced before the target image data from the second queue through the second thread. It can be understood that after the display end reads the target image data in the second queue, the second queue deletes the target image data and the image data in front of the target image data in the queue according to the ordering of the target image data in the second queue, that is, deletes the image data enqueued before the enqueuing of the target image data, so as to prevent the internal boundary crossing.
In this embodiment, the selecting the target image data from the second queue for displaying may include: performing image data processing on the target image data to obtain corresponding target image frames, and playing the target image frames through a display screen of the display end; wherein the image data processing includes any one or more of coordinate conversion, color conversion, image registration, and data reconstruction. It will be appreciated that the collected raw image data often needs to be processed to be an image for display, and the processing time of these intermediate processes also makes the display and the collection speed different, which affects the smoothness of the display. Thus, in this embodiment, image data processing is performed on the image data in the second queue, where the image data processing includes any one or more of coordinate conversion, color conversion, image registration, and data reconstruction. It can be understood that the second queue is only required to be operated in cooperation with the setting of the display frequency and the data processing of the image, and the first queue only needs to be focused on cooperation with the image data acquisition end, so that each acquired image data is ensured to be stored.
From the above, the original image data acquired by the image data acquisition end is acquired in real time through the first thread, and the original image data is put into the bottom of the first queue; acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue; the display end detects the second queue according to the preset display frequency, and selects target image data from the second queue to display according to the ordering of the image data in the second queue, namely the display end can read the image data from the second queue according to the preset display frequency to display. Therefore, the acquired images are processed in a double-queue and multi-thread mode, so that support is provided for flexible image display, the image display is independent of the image acquisition speed, and the smoothness of the display is ensured.
The embodiment of the application discloses a specific image display method, referring to fig. 3, the method may include the following steps:
step S21: the method comprises the steps of acquiring original image data and corresponding time stamps acquired by an image acquisition end in real time through a first thread, and placing the original image data and the corresponding time stamps into the bottom of a first queue.
In this embodiment, the original image data acquired by the image acquisition end is acquired in real time through the first thread, and meanwhile, a timestamp corresponding to the original image data is acquired, and the acquired original image data and the corresponding timestamp are placed at the bottom of the first queue.
Step S22: and acquiring the first image data and the corresponding time stamp at the top of the first queue in real time through a second thread, and placing the first image data and the corresponding time stamp at the bottom of the second queue.
In this embodiment, the first image data and the corresponding time stamp at the top of the first queue are obtained in real time through the second thread, and the obtained first image data and the corresponding time stamp are placed at the bottom of the second queue.
Step S23: and detecting the second queue through the display terminal according to a preset display frequency, and selecting image data closest to the current time according to the time stamp to display.
In this embodiment, the display end detects the second queue according to the preset display frequency, and selects the image data closest to the current time as the target image according to the timestamp of the image data in the second queue, and plays the target image data. It can be understood that, for example, when the set image display frequency is smaller than the acquisition speed of the image data acquisition end, the image throwing speed of the second queue is relatively slower, and the second queue becomes longer, so that the display end can select, according to the timestamp information, the image data closest to the current time as the target image data to display, and then, the second queue throws the useless data, that is, the image data before the target image data, appropriately according to the timestamp, so as to prevent the memory from being out of range.
In this embodiment, the selecting the target image data from the second queue for displaying may include: and if the display end detects that the second queue is empty, backtracking and playing the acquired last frame of target image. It can be understood that when the set image display frequency is greater than the acquisition speed of the image data acquisition end, the second queue throws out the image fast, and when the second queue is empty, the display end can retrospectively display the last frame of target image frame, thereby ensuring that the display is not blocked.
In this embodiment, after selecting the target image data from the second queue for display according to the timestamp corresponding to the image data in the second queue, the method may further include: according to the timestamp corresponding to the target image data, image data with acquisition time smaller than the timestamp are screened out from the second queue to serve as image data to be deleted; and deleting the target image data and the image data to be deleted from the second queue through the second thread. It can be understood that after the display end reads the target image data in the second queue, the second queue throws out the target image data and the image data before the target image data according to the timestamp of the image data, so as to prevent the internal boundary crossing.
From the above, in this embodiment, the original image data and the corresponding timestamp acquired by the image acquisition end are acquired in real time through the first thread, the original image data and the corresponding timestamp are placed at the bottom of the first queue, then the first image data and the corresponding timestamp at the top of the first queue are acquired in real time through the second thread, the first image data and the corresponding timestamp are placed at the bottom of the second queue, finally the second queue is detected through the display end according to the preset display frequency, and the image data closest to the current time is selected according to the timestamp for display. The time stamp corresponding to the image data is obtained while the original image data is obtained, then the image data closest to the current time is selected according to the time stamp for display, so that the playing of the real-time image under the preset display frequency can be ensured, the dependence of the image display on the image acquisition speed is solved, the frequency of the image display can be set according to the requirement, the display of the real-time image can be carried out according to the preset image display frequency, the smoothness of the display is ensured, and the flexible processing of the image display is realized.
Correspondingly, the embodiment of the application also discloses an image display device, referring to fig. 4, the device comprises:
the first queue image acquisition module 11 is used for acquiring original image data acquired by the image data acquisition end in real time through a first thread and placing the original image data into the bottom of the first queue;
a second queue image obtaining module 12, configured to obtain, in real time, first image data of the top of the first queue through a second thread, and put the first image data into the bottom of the second queue;
the image display module 13 is configured to detect, by using a display end, the second queue according to a preset display frequency, and select, according to the ordering of the image data in the second queue, the target image data from the second queue for display.
In the embodiment, original image data acquired by an image data acquisition end is acquired in real time through a first thread, and the original image data is put into the bottom of a first queue; acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue; and detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue according to the ordering of the image data in the second queue for display. Therefore, the dependency of image display on the image acquisition speed is solved through the image cache of the double queues, the frequency of the image display can be set according to the requirement, real-time image display can be carried out according to the preset image display frequency, and the smoothness of display is ensured.
In some embodiments, the second queue image capture module 12 may specifically include:
the image acquisition unit is used for acquiring first image data from the top of the first queue through the second thread according to the configuration of a preset thread lock; wherein the thread lock is a thread lock that performs dequeuing operations of the first queue for the first thread and the second thread performs operations of acquiring first image data of a top of the first queue.
In some specific embodiments, the image display module 13 may specifically include:
the image data processing unit is used for carrying out image data processing on the target image data to obtain a corresponding target image frame, and playing the target image frame through a display screen of the display end; wherein the image data processing includes any one or more of coordinate conversion, color conversion, image registration, and data reconstruction.
In some specific embodiments, the image display module 13 may specifically include:
and the first display unit is used for backtracking and playing the acquired last frame of target image if the display end detects that the second queue is empty.
In some specific embodiments, the first queue image capturing module 11 may specifically include:
the data and timestamp acquisition unit is used for acquiring the original image data acquired by the image data acquisition end and the corresponding timestamp in real time through the first thread;
accordingly, in some embodiments, the image display module 13 may specifically include:
and the second display unit is used for selecting the image data closest to the current time according to the time stamp to display.
In some embodiments, the image display apparatus may include:
the first deleting unit is used for deleting the first image data from the first queue through the first thread after the second thread acquires the first image data at the top of the first queue in real time;
and the second deleting unit is used for deleting the target image data and the image data which are sequenced before the target image data from the second queue through the second thread after the target image data are selected from the second queue to be displayed.
Further, the embodiment of the application further discloses an electronic device, and referring to fig. 5, the content in the drawing should not be considered as any limitation on the scope of use of the application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement the relevant steps in the image display method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223 including original image data, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the image display method performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include raw image data acquired by the electronic device 20.
Further, the embodiment of the application also discloses a computer storage medium, in which computer executable instructions are stored, and when the computer executable instructions are loaded and executed by a processor, the steps of the image display method disclosed in any of the previous embodiments are implemented.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has described in detail the method, apparatus, device and medium for displaying images, and specific examples have been applied to illustrate the principles and embodiments of the present invention, and the above examples are only for aiding in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. An image display method, comprising:
acquiring original image data acquired by an image data acquisition end in real time through a first thread, and placing the original image data into the bottom of a first queue;
acquiring first image data at the top of the first queue in real time through a second thread, and placing the first image data at the bottom of the second queue;
detecting the second queue through a display end according to a preset display frequency, and selecting target image data from the second queue for display according to the ordering of the image data in the second queue;
wherein, the setting of the display frequency is matched with the data processing of the image, and only the second queue is operated; the first queue is only used for matching with the image data acquisition end, so that each acquired image data is ensured to be stored.
2. The image display method according to claim 1, wherein the acquiring, by the second thread, the first image data of the top of the first queue in real time includes:
acquiring first image data from the top of the first queue through the second thread according to the configuration of a preset thread lock;
wherein the thread lock is a thread lock that performs dequeuing operations of the first queue for the first thread and the second thread performs operations of acquiring first image data of a top of the first queue.
3. The image display method according to claim 1, characterized by further comprising:
and setting the first queue and the second queue as circulating queues according to the memory condition of the equipment.
4. The image display method according to claim 1, wherein selecting the target image data from the second queue for display includes:
performing image data processing on the target image data to obtain corresponding target image frames, and playing the target image frames through a display screen of the display end;
wherein the image data processing includes any one or more of coordinate conversion, color conversion, image registration, and data reconstruction.
5. The image display method according to claim 1, wherein selecting the target image data from the second queue for display includes:
and if the display end detects that the second queue is empty, backtracking and playing the acquired last frame of target image.
6. The image display method according to any one of claims 1 to 5, wherein in the process of acquiring the original image data acquired by the image data acquisition end in real time through the first thread, the method further comprises:
acquiring original image data and a corresponding time stamp acquired by the image data acquisition end in real time through the first thread;
correspondingly, after the second queue is detected by the display end according to the preset display frequency, the method further comprises the following steps:
and selecting the image data closest to the current time according to the time stamp to display.
7. The image display method according to claim 1, wherein after the acquiring, by the second thread, the first image data of the top of the first queue in real time, further comprises:
deleting, by the first thread, the first image data from the first queue;
after selecting the target image data from the second queue for display according to the ordering of the image data in the second queue, the method further comprises:
and deleting the target image data and the image data sequenced before the target image data from the second queue through the second thread.
8. An image display device, comprising:
the first queue image acquisition module is used for acquiring original image data acquired by the image data acquisition end in real time through a first thread and placing the original image data into the bottom of the first queue;
the second queue image acquisition module is used for acquiring first image data at the top of the first queue in real time through a second thread and placing the first image data at the bottom of the second queue;
the image display module is used for detecting the second queue according to a preset display frequency through a display end, and selecting target image data from the second queue for display according to the ordering of the image data in the second queue;
wherein, the setting of the display frequency is matched with the data processing of the image, and only the second queue is operated; the first queue is only used for matching with the image data acquisition end, so that each acquired image data is ensured to be stored.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the image display method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the image display method as claimed in any one of claims 1 to 7.
CN202110342380.7A 2021-03-30 2021-03-30 Image display method, device, equipment and storage medium Active CN113079402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110342380.7A CN113079402B (en) 2021-03-30 2021-03-30 Image display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110342380.7A CN113079402B (en) 2021-03-30 2021-03-30 Image display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113079402A CN113079402A (en) 2021-07-06
CN113079402B true CN113079402B (en) 2023-06-23

Family

ID=76611864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110342380.7A Active CN113079402B (en) 2021-03-30 2021-03-30 Image display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113079402B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113749564A (en) * 2021-09-01 2021-12-07 深圳市云鼠科技开发有限公司 Map data drawing method, module, equipment and medium for sweeping robot
CN114339406B (en) * 2022-01-27 2023-01-24 重庆紫光华山智安科技有限公司 Method, system, device and medium for adjusting decoding speed
CN115081467B (en) * 2022-07-22 2023-02-03 深圳市成为信息股份有限公司 Method for collecting original image by handset, handset and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040181611A1 (en) * 2003-03-14 2004-09-16 Viresh Ratnakar Multimedia streaming system for wireless handheld devices
CN110366033B (en) * 2019-07-17 2021-10-22 腾讯科技(深圳)有限公司 Video playing method, device, equipment and storage medium
CN112487034A (en) * 2020-12-01 2021-03-12 上海思客琦智能装备科技股份有限公司 Double-queue asynchronous image processing method and device

Also Published As

Publication number Publication date
CN113079402A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN113079402B (en) Image display method, device, equipment and storage medium
CN110533609B (en) Image enhancement method, device and storage medium suitable for endoscope
CN110832875B (en) Video processing method, terminal device and machine-readable storage medium
US20130024869A1 (en) Picture loading method and terminal
CN107197357B (en) Method and device for intercepting video during playing
US20130139167A1 (en) Identification of Thread Progress Information
CN110720096B (en) Multi-sensor state estimation method and device and terminal equipment
CN109391646A (en) Message-oriented middleware message acquisition method, device and system
JP2011523706A (en) Signal search with 3D bitmap
US20070180396A1 (en) Screen transition control device
JP2001289880A (en) Oscilloscope and its operation method
CN109981715A (en) A kind of method and device of session management
CN109298817B (en) Item display method, item display device, terminal and storage medium
WO2015067166A1 (en) Touch-type input method and device
CA2965283C (en) Systems and methods of subject state change notification
CN114650361A (en) Shooting mode determining method and device, electronic equipment and storage medium
CN109829526B (en) Bar code management method and device and electronic equipment
WO2019134685A1 (en) Oscilloscope data processing method and device, and oscilloscope
CN108289177B (en) Information interaction method, device and system
CN114205632A (en) Video preview method and device, electronic equipment and computer readable storage medium
CN104135666A (en) Interpolation storage method and system for screen image as well as replay method
CN114546677A (en) Message execution processing method and device, electronic equipment and storage medium
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
CN112053280A (en) Panoramic map display method, device, equipment and storage medium
CN106846433B (en) Signal change diagram drawing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 215333 Room 301, auxiliary building 4, accelerator, No. 135, Zhangji Road, Kunshan Development Zone, Suzhou, Jiangsu Province

Applicant after: Suzhou Bodong Rongying Medical Technology Co.,Ltd.

Address before: Room 1009, North building, complex building, 1699 Zuchongzhi South Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Applicant before: Kunshan Rongying Medical Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant