CN113157969A - Method and system for rapidly entering film playback state for ultrasonic diagnosis - Google Patents

Method and system for rapidly entering film playback state for ultrasonic diagnosis Download PDF

Info

Publication number
CN113157969A
CN113157969A CN202110253962.8A CN202110253962A CN113157969A CN 113157969 A CN113157969 A CN 113157969A CN 202110253962 A CN202110253962 A CN 202110253962A CN 113157969 A CN113157969 A CN 113157969A
Authority
CN
China
Prior art keywords
frame
data
image data
index table
module
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.)
Pending
Application number
CN202110253962.8A
Other languages
Chinese (zh)
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.)
Jurong Medical Technology Hangzhou Co ltd
Original Assignee
Jurong Medical Technology Hangzhou 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 Jurong Medical Technology Hangzhou Co ltd filed Critical Jurong Medical Technology Hangzhou Co ltd
Priority to CN202110253962.8A priority Critical patent/CN113157969A/en
Publication of CN113157969A publication Critical patent/CN113157969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying

Abstract

The invention discloses a method and a system for rapidly entering a movie playback state for ultrasonic diagnosis, wherein the related method for rapidly entering the movie playback state for ultrasonic diagnosis comprises the following steps: s1, storing data required in a scanning process in a storage medium; s2, judging whether information that a user selects to review historical data is received, if so, executing a step S3; s3, generating an index table of all frame data stored in a storage medium; s4, entering a movie playback state, playing to a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium; s5, processing the image data of the frame by adopting an image algorithm to generate data required by display; s6, releasing the memory occupied by the frame image data in the storage medium, and displaying the frame image. The invention accelerates the state of entering the movie playback and reduces the resource consumption of the playback storage area by establishing the image data fast index table.

Description

Method and system for rapidly entering film playback state for ultrasonic diagnosis
Technical Field
The invention relates to the technical field of ultrasonic diagnosis, in particular to a method and a system for rapidly entering a movie playback state for ultrasonic diagnosis.
Background
In the ultrasonic equipment, the function of movie playback means that image data of a certain link in the real-time scanning process is stored in a storage medium, and when a user selects to review historical examination through an interface, the image data stored in the storage medium is subjected to image processing of some links, and an image during the real-time scanning is reproduced on display equipment. Movie playback is an important technical means in ultrasound diagnosis and treatment.
The image data generated in the real-time scanning is large, and before the movie playback state is entered, the image data needs to be taken out from the storage medium, loaded into the movie playback storage area and subjected to image processing, so that the image can be reproduced
Since the image data is large, it takes a lot of time to retrieve the data from the storage medium into the movie playback storage area, and the user needs to wait a long time from the selection to review the history check to the movie playing status
Due to the large image data, the consumption of playback memory area resources is severe throughout the movie playback process.
Therefore, in order to solve the above technical problems, the present invention provides a method and system for rapidly entering a cine-playback state for ultrasound diagnosis.
Disclosure of Invention
The invention aims to provide a method and a system for rapidly entering a movie playback state for ultrasonic diagnosis, aiming at the defects of the prior art and solving the problem of large consumption of playback storage area resources in the movie playback state.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of rapidly entering a cine playback state for ultrasound diagnostics, comprising:
s1, storing data required in a scanning process in a storage medium;
s2, judging whether information that a user selects to review historical data is received, if so, executing a step S3;
s3, generating an index table of all frame data stored in a storage medium;
s4, entering a movie playback state, playing to a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium;
s5, processing the image data of the frame by adopting an image algorithm to generate data required by display;
s6, releasing the memory occupied by the frame image data in the storage medium, and displaying the frame image.
Further, the data required in step S1 includes a header and frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, and time stamp.
Further, the step S3 specifically includes:
s31, reading a data head;
and S32, generating an index table according to the read data header, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
Further, the step S32 specifically includes:
s321, calculating the offset of the current frame relative to the movie data;
s322, searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the Nth frame data;
s323, adding the read index information of the Nth frame into an index table;
s324, traversing all frames according to the total frame number in the data header, and generating an index table of all frame data according to the steps S321-S323.
Further, the step S4 is specifically: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
Accordingly, there is also provided a system for rapidly entering a cine-playback state for ultrasound diagnostics, comprising:
the storage module is used for storing data required in the scanning process into a storage medium;
the judging module is used for judging whether information that a user selects to review historical data is received;
the first generation module is used for generating an index table of all frame data stored in a storage medium;
the first reading module is used for entering a movie playback state, playing a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium;
the processing module is used for processing the image data of the frame by adopting an image algorithm to generate data required by display;
and the display module is used for releasing the memory occupied by the frame image data in the storage medium and displaying the frame image.
Further, the data required in the storage module comprises a data header and frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, and time stamp.
Further, the first generating module specifically includes:
the second reading module is used for reading the data head;
and the second generation module is used for generating an index table according to the read data head, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
Further, the second generating module specifically includes:
the calculating module is used for calculating the offset of the current frame relative to the movie data;
the searching module is used for searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the data of the Nth frame;
the adding module is used for adding the read index information of the Nth frame into an index table;
and the traversing module is used for traversing all the frames according to the total frame number in the data head and generating an index table of all the frame data.
Further, the first reading module specifically includes: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
Compared with the prior art, the invention has the following beneficial effects:
1. the movie playback state is rapidly entered, and the user experience is optimized;
2. and the occupation of the movie playback storage area resources is reduced.
Drawings
FIG. 1 is a flowchart of a method for rapidly entering a cine-loop state for ultrasound diagnostics according to one embodiment;
FIG. 2 is a diagram of an example data structure provided in accordance with one embodiment;
FIG. 3 is a diagram of a data structure provided in accordance with one embodiment;
fig. 4 is a system configuration diagram of a fast entry cine-playback state for ultrasound diagnosis according to the second embodiment.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
The invention aims to overcome the defects of the prior art and provides a method and a system for rapidly entering a movie playback state for ultrasonic diagnosis.
Example one
The embodiment provides a method for rapidly entering a movie playback state for ultrasonic diagnosis, which comprises the following steps:
s1, storing data required in a scanning process in a storage medium;
s2, judging whether information that a user selects to review historical data is received, if so, executing a step S3;
s3, generating an index table of all frame data stored in a storage medium;
s4, entering a movie playback state, playing to a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium;
s5, processing the image data of the frame by adopting an image algorithm to generate data required by display;
s6, releasing the memory occupied by the frame image data in the storage medium, and displaying the frame image.
In step S1, data required during the scanning is stored in the storage medium.
As shown in fig. 2, which is an exemplary diagram of a data structure, in a scanning process, required data is stored in a storage medium, including a data header and frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, time stamp, and the like.
In step S3, an index table of all frame data stored in the storage medium is generated. The method specifically comprises the following steps:
s31, reading a data head;
and S32, generating an index table according to the read data header, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
Such as the data structure diagram shown in fig. 3.
The method specifically comprises the following steps:
s321, calculating the offset of the current frame relative to the movie data;
assuming that the number of frames ahead of the frame is K, the offset is K × data frame size + data header size (K is equal to or greater than 0).
S322, searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the Nth frame data;
s323, adding the read index information of the Nth frame into an index table;
s324, traversing all frames according to the total frame number in the data head, and generating an index table of all frame data according to the steps S321-S323
In step S4, a movie playback state is entered, a movie player is used to play to a frame, image data for the frame is obtained based on the index table, and the frame image data is read into the storage medium. The method specifically comprises the following steps: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
In step S5, the image data of the frame is processed by an image algorithm to generate data necessary for display.
Processing the frame of image data through DSC and other image algorithms to generate data required by display
In this embodiment, since only a certain frame of image is played back at a certain time during playback of the movie, when the user selects to review the history check, the user first reads a data header in the storage medium, where the size, the number of frames, and the frame number of the movie data are recorded, traverses a fast index table of generated image data, for example, there are 3 frames of data in the storage medium, the generated index table has three pieces of data, where the size, the frame number, the timestamp, and the offset of the frame with respect to the movie data are recorded, instead of loading all image data into a movie playback storage area, when a certain frame is played back, the frame number of the frame is N, we can find the offset corresponding to the frame number N in the index table as M, and if the storage medium is a hard disk, read data with the length of the frame with respect to the start position of the file into the memory, the image data of the frame can be acquired, and after the image data is processed by image algorithms such as DSC and the like, the displayed pixel data is generated and then displayed on the display equipment, namely, the playback of the frame is completed. Therefore, all image data do not need to be loaded into the memory before the movie playback, and only the required data need to be dynamically loaded according to the playing position of the movie player.
The embodiment accelerates the state of entering the movie playback and reduces the resource consumption of the playback storage area by establishing the image data fast index table.
Example two
The present embodiment provides a system for rapidly entering a cine playback state for ultrasound diagnosis, as shown in fig. 4, comprising:
the storage module 11 is used for storing data required in the scanning process into a storage medium;
a judging module 12, configured to judge whether information that a user selects to review historical data is received;
a first generating module 13, configured to generate an index table of all frame data stored in the storage medium;
the first reading module 14 is configured to enter a movie playback state, play a certain frame by using a movie player, obtain image data of the frame based on the index table, and read the image data of the frame into a storage medium;
a processing module 15, configured to process the image data of the frame by using an image algorithm to generate data required for display;
and the display module 16 is configured to release the memory occupied by the frame of image data in the storage medium, and display the frame of image.
Further, the data required in the storage module 11 includes a data header and frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, and time stamp.
Further, the first generating module 13 specifically includes:
the second reading module is used for reading the data head;
and the second generation module is used for generating an index table according to the read data head, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
Further, the second generating module specifically includes:
the calculating module is used for calculating the offset of the current frame relative to the movie data;
the searching module is used for searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the data of the Nth frame;
the adding module is used for adding the read index information of the Nth frame into an index table;
and the traversing module is used for traversing all the frames according to the total frame number in the data head and generating an index table of all the frame data.
Further, the first reading module 14 specifically includes: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
It should be noted that, the system for quickly entering the cine playback state for ultrasound diagnosis provided in this embodiment is similar to the embodiment, and is not repeated herein.
Compared with the prior art, the invention has the following beneficial effects:
1. the movie playback state is rapidly entered, and the user experience is optimized;
2. and the occupation of the movie playback storage area resources is reduced.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for rapidly entering a cine playback state for ultrasound diagnostics, comprising:
s1, storing data required in a scanning process in a storage medium;
s2, judging whether information that a user selects to review historical data is received, if so, executing a step S3;
s3, generating an index table of all frame data stored in a storage medium;
s4, entering a movie playback state, playing to a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium;
s5, processing the image data of the frame by adopting an image algorithm to generate data required by display;
s6, releasing the memory occupied by the frame image data in the storage medium, and displaying the frame image.
2. The method for rapidly entering a cine-playback state for ultrasound diagnosis according to claim 1, wherein the data required in step S1 includes a header data, a frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, and time stamp.
3. The method for rapidly entering a cine-playback state for ultrasound diagnosis according to claim 2, wherein the step S3 specifically includes:
s31, reading a data head;
and S32, generating an index table according to the read data header, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
4. The method for rapidly entering a cine-playback state for ultrasound diagnosis according to claim 3, wherein the step S32 specifically comprises:
s321, calculating the offset of the current frame relative to the movie data;
s322, searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the Nth frame data;
s323, adding the read index information of the Nth frame into an index table;
s324, traversing all frames according to the total frame number in the data header, and generating an index table of all frame data according to the steps S321-S323.
5. The method for rapidly entering a cine-playback state for ultrasound diagnosis according to claim 4, wherein the step S4 is specifically: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
6. A system for rapidly entering a cine playback state for ultrasound diagnostics, comprising:
the storage module is used for storing data required in the scanning process into a storage medium;
the judging module is used for judging whether information that a user selects to review historical data is received;
the first generation module is used for generating an index table of all frame data stored in a storage medium;
the first reading module is used for entering a movie playback state, playing a certain frame by adopting a movie player, acquiring image data of the frame based on the index table, and reading the image data of the frame into a storage medium;
the processing module is used for processing the image data of the frame by adopting an image algorithm to generate data required by display;
and the display module is used for releasing the memory occupied by the frame image data in the storage medium and displaying the frame image.
7. The system for rapidly entering a cine-playback state for ultrasound diagnosis of claim 6, wherein the data required in the storage module comprises a data header, frame data; wherein the data head comprises a total frame number, the size of each frame and the size of the data head; the frame data includes image data, frame number, and time stamp.
8. The system for rapidly entering a cine playback state for ultrasound diagnosis according to claim 7, wherein the first generating module comprises:
the second reading module is used for reading the data head;
and the second generation module is used for generating an index table according to the read data head, wherein the information in the index table comprises a frame number, a timestamp, image data and the offset of the current frame relative to the movie data.
9. The system for rapidly entering a cine playback state for ultrasound diagnosis according to claim 8, wherein the second generating module specifically comprises:
the calculating module is used for calculating the offset of the current frame relative to the movie data;
the searching module is used for searching a frame with the frame number N according to the calculated offset, and reading the frame number and the timestamp of the data of the Nth frame;
the adding module is used for adding the read index information of the Nth frame into an index table;
and the traversing module is used for traversing all the frames according to the total frame number in the data head and generating an index table of all the frame data.
10. The system for rapidly entering a cine playback state for ultrasound diagnostics as claimed in claim 9, wherein the first reading module is specifically: and the movie player plays the frame with the frame number N, finds the offset of the Nth frame according to the index table, acquires the image data of the Nth frame and reads the image data of the Nth frame into the storage medium.
CN202110253962.8A 2021-03-09 2021-03-09 Method and system for rapidly entering film playback state for ultrasonic diagnosis Pending CN113157969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110253962.8A CN113157969A (en) 2021-03-09 2021-03-09 Method and system for rapidly entering film playback state for ultrasonic diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110253962.8A CN113157969A (en) 2021-03-09 2021-03-09 Method and system for rapidly entering film playback state for ultrasonic diagnosis

Publications (1)

Publication Number Publication Date
CN113157969A true CN113157969A (en) 2021-07-23

Family

ID=76884438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110253962.8A Pending CN113157969A (en) 2021-03-09 2021-03-09 Method and system for rapidly entering film playback state for ultrasonic diagnosis

Country Status (1)

Country Link
CN (1) CN113157969A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398001A (en) * 2021-12-03 2022-04-26 北京数字电视国家工程实验室有限公司 Super-large sequence image transmission method and device and computer
CN114416797A (en) * 2022-01-19 2022-04-29 北京万旺科技有限公司 Method and device for playing back historical data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750962A (en) * 2012-06-11 2012-10-24 杭州海康威视数字技术股份有限公司 Playback method and device for video files
CN102891997A (en) * 2011-07-20 2013-01-23 深圳市快播科技有限公司 Audio and video frequency multi-media file format for fast play, playing method and playing device
CN104967862A (en) * 2015-07-22 2015-10-07 东方网力科技股份有限公司 Video storage method and device, and video searching method and device
CN109068165A (en) * 2018-07-23 2018-12-21 北京奇艺世纪科技有限公司 A kind of Dynamic Graph display methods and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891997A (en) * 2011-07-20 2013-01-23 深圳市快播科技有限公司 Audio and video frequency multi-media file format for fast play, playing method and playing device
CN102750962A (en) * 2012-06-11 2012-10-24 杭州海康威视数字技术股份有限公司 Playback method and device for video files
CN104967862A (en) * 2015-07-22 2015-10-07 东方网力科技股份有限公司 Video storage method and device, and video searching method and device
CN109068165A (en) * 2018-07-23 2018-12-21 北京奇艺世纪科技有限公司 A kind of Dynamic Graph display methods and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398001A (en) * 2021-12-03 2022-04-26 北京数字电视国家工程实验室有限公司 Super-large sequence image transmission method and device and computer
CN114398001B (en) * 2021-12-03 2024-02-20 北京数字电视国家工程实验室有限公司 Super-large sequence image transmission method, device and computer
CN114416797A (en) * 2022-01-19 2022-04-29 北京万旺科技有限公司 Method and device for playing back historical data

Similar Documents

Publication Publication Date Title
US7486870B2 (en) System and method for reproducing a video session using accelerated frame playback
CN110267098B (en) Video processing method and terminal
JP4241709B2 (en) Image processing device
CN113157969A (en) Method and system for rapidly entering film playback state for ultrasonic diagnosis
US20030235390A1 (en) System and method for reproducing a video session using accelerated frame recording
JP6229067B2 (en) Data access method and apparatus
CN112929755A (en) Video file playing method and device in progress dragging process
JP2018157293A (en) Moving image processing device, moving image processing method, and program
CN106792217A (en) A kind of video broadcasting method and device
US8824872B2 (en) Display control apparatus, reproduction system, and recording medium in which display control is performed based on a detected event
US20060078308A1 (en) Video reproducing apparatus
CN114071127A (en) Live video delay testing method and device, storage medium and electronic equipment
CN109313608B (en) Image verification coefficient reading method, flash memory controller, system and storage medium
CN113938631B (en) Reference monitor, image frame interception method and system
CN112104907B (en) Picture playing method and device
CN105681718B (en) Display method for video playback of automobile data recorder and automobile data recorder
JP4578136B2 (en) Ultrasonic diagnostic equipment
CN111464771B (en) Multi-path output method and equipment for vehicle-mounted video
CN115174680B (en) Visual data playing method, device, system, equipment and readable storage medium
CN115967835A (en) Live broadcast method and system capable of automatically selecting image matting mode and electronic equipment
JP2005177105A (en) Ultrasonic diagnostic equipment
EP1990803A1 (en) Method of high speed video playback and video playback apparatus using the same
JP2643781B2 (en) Video playback method
CN115984088A (en) Image processing method, image processing device, electronic equipment and storage medium
CN116521925A (en) Video recording, playing, retrieving and playback method and device, electronic equipment and medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210723

RJ01 Rejection of invention patent application after publication