CN105657427A - High-definition image compression method and system suitable for catenary - Google Patents

High-definition image compression method and system suitable for catenary Download PDF

Info

Publication number
CN105657427A
CN105657427A CN201610047341.3A CN201610047341A CN105657427A CN 105657427 A CN105657427 A CN 105657427A CN 201610047341 A CN201610047341 A CN 201610047341A CN 105657427 A CN105657427 A CN 105657427A
Authority
CN
China
Prior art keywords
image
file
frame
definition
compression
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
CN201610047341.3A
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.)
Chengdu National Railways Electric Equipment Co Ltd
Original Assignee
Chengdu National Railways Electric Equipment 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 Chengdu National Railways Electric Equipment Co Ltd filed Critical Chengdu National Railways Electric Equipment Co Ltd
Priority to CN201610047341.3A priority Critical patent/CN105657427A/en
Publication of CN105657427A publication Critical patent/CN105657427A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a high-definition image compression method and system suitable for a catenary. The method comprises the following steps: S1, obtaining high-definition image stream data; S2, sequentially extracting each frame of high-definition image in the image stream data; S3, judging whether the current high-definition image is the first frame of image of the image stream data, if so, skipping to a step S4, and otherwise, skipping to a step S5; S4, creating a video compression file and a corresponding index file, and writing a file header in the index file; S5, compressing the current frame of high-definition image and writing the same in the video compression file, and writing the corresponding frame information in the index file; and S6, judging whether the current high-definition image is the last frame of image of the image stream data, if so, terminating the current compression; and otherwise, skipping to the step S3, and carrying out the operations in the step S3 to the step S6 on the next frame of high-definition image. By adopting the high-definition image compression method and system suitable for the catenary disclosed by the invention, the problems of large necessary storage space and high cost of a high-definition video of a highway catenary are solved.

Description

A kind of high-definition image compression method suitable in contact net and system
Technical field
The present invention relates to a kind of high-definition image compression method suitable in contact net and system.
Background technology
Railway contact line is that railroad train (locomotive and motor-car) provides reliable continual electric energy, transmits electric energy by supply lines and pantograph (abbreviation bow net) to train. By shooting the various station diagram picture of railway contact line (pantograph and supply lines, column and davit etc.), again through image analysis calculation security monitoring parameter, carry out safety detection. Utilize high definition imaging device shooting railway contact line, it is possible to obtain at a high speed the high-definition image of railway contact line, provide favorable factor for graphical analysis. If directly storage railway contact line high-definition image, it is necessary to more memory space, later stage process is also required to bigger memory headroom, is unfavorable for reducing cost.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, it is provided that a kind of high-definition image compression method suitable in contact net and system, needed for solving railway contact line HD video, memory space is big, the problem that cost is high.
It is an object of the invention to be achieved through the following technical solutions: a kind of high-definition image compression method suitable in contact net, comprise the following steps:
S1. the high-definition image flow data of railway contact line is obtained from high definition camera;
S2. each frame high-definition image in image stream data is taken out successively with the time order and function order of high definition camera shooting;
S3. judge that whether present frame high-definition image is the first two field picture of image stream data:
(1) if present frame high-definition image is the first two field picture of image stream data, step S4 is jumped to;
(2) if present frame high-definition image is not the first two field picture of image stream data, step S5 is jumped to;
S4. create video compress file and corresponding index file, and indexed file writes file header;
S5. present frame high-definition image is compressed, obtains compression image, and compression image is write in video compress file with additional pattern, generate corresponding frame information for compression image, and the frame information generated is write in index file with additional pattern;
S6. judge that whether present frame high-definition image is the last frame image of image stream data:
(1) if present frame high-definition image is the last frame image of image stream data, this second compression terminates;
(2) if present frame high-definition image is not the last frame image of image stream data, jump to step S3, next frame high-definition image is carried out the operation of step S3 ~ S6;
The frame number compressing image in described video compress file starts counting up from 0.
Described step S4 includes following sub-step:
S41. video compress file and corresponding index file are created;
S42. writing file header in indexed file, the file header of write includes picture traverse information and the picture altitude information of video compress file;
Described step S5 includes following sub-step:
S51. present frame high-definition image is compressed, obtains compression image, and currently available compression image is write in video compress file with additional pattern;
S52. generate corresponding frame information for current compression image, indexed file writes, with additional pattern, the frame information that current compression image is corresponding; The frame information of write includes compressing image data size information, the image start position information in video compress file and image capturing time stamp information.
After compression of images, it is possible to use known frame number searches corresponding timestamp information, or finds the compression image that this frame number is corresponding in compressed video file, in like manner, by known timestamp information, it is also possible to try to achieve the frame number of correspondence.
A kind of high-definition image compressibility suitable in contact net, including data acquisition module and data processing module; Described data processing module includes video compress file creating unit, index file creation unit, image compression unit and frame information and generates unit:
Described data acquisition module for obtaining railway contact line high-definition image flow data from high definition camera;
Described video compress file creating unit is used for creating video compress file;
Described index file creation unit is used for creating index file;
Described video compressing unit is for being compressed each frame high-definition image in image stream data, and image compression obtained writes in video compress file with additional pattern;
Described frame information generates the unit image delta frame information for obtaining for the clear compression of images of each vertical frame dimension in image stream data, and is write in index file with additional pattern by the frame information generated.
The invention has the beneficial effects as follows: the image stream data of HD video is compressed by (1), needed for solving railway contact line HD video, memory space is big, the problem that cost is high;
(2) in the process that the image stream data of HD video is compressed, the image obtained for the clear compression of images of each vertical frame dimension generates corresponding index information, lays a good foundation for successive image process, analysis and identification.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the present invention;
Fig. 2 is the system principle diagram of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is described in further detail, but protection scope of the present invention is not limited to the following stated.
As it is shown in figure 1, a kind of high-definition image compression method suitable in contact net, comprise the following steps:
S1. the high-definition image flow data of railway contact line is obtained from high definition camera;
S2. each frame high-definition image in image stream data is taken out successively with the time order and function order of high definition camera shooting;
S3. judge that whether present frame high-definition image is the first two field picture of image stream data:
(1) if present frame high-definition image is the first two field picture of image stream data, step S4 is jumped to;
(2) if present frame high-definition image is not the first two field picture of image stream data, step S5 is jumped to;
S4. create video compress file and corresponding index file, and indexed file writes file header;
S5. present frame high-definition image is compressed, obtains compression image, and compression image is write in video compress file with additional pattern, generate corresponding frame information for compression image, and frame information is write in index file with additional pattern;
S6. judge that whether present frame high-definition image is the last frame image of image stream data:
(1) if present frame high-definition image is the last frame image of image stream data, this second compression terminates;
(2) if present frame high-definition image is not the last frame image of image stream data, jump to step S3, next frame high-definition image is carried out the operation of step S3 ~ S6;
Further, the image stream data obtained from high definition camera is BMP image stream data, and in BMP image stream data, each frame high-definition image is BMP image, and described compression image is jpeg image.
Described step S4 includes following sub-step:
S41. video compress file and corresponding index file are created;
S42. writing file header in indexed file, the file header of write includes picture traverse information and the picture altitude information of video compress file;
Described step S5 includes following sub-step:
S51. present frame high-definition image is compressed, obtains compression image, and currently available compression image is write in video compress file with additional pattern;
The frame number compressing image in video compress file starts counting up from 0, and setting video compressed file totalframes is n, and the frame number of the 1st two field picture is 0, the frame number 1 of the 2nd two field picture, and the frame number of the i-th two field picture is i-1, i is the integer more than 0 less than or equal to n.
S52. generate corresponding frame information for current compression image, indexed file writes, with additional pattern, the frame information that current compression image is corresponding; The frame information of write includes compressing image data size information, the image start position information in video compress file and image capturing time stamp information.
As in figure 2 it is shown, a kind of high-definition image compressibility suitable in contact net, including data acquisition module and data processing module; Described data processing module includes video compress file creating unit, index file creation unit, image compression unit and frame information and generates unit:
Described data acquisition module for obtaining railway contact line high-definition image flow data from high definition camera;
Described video compress file creating unit is used for creating video compress file;
Described index file creation unit is used for creating index file;
Described video compressing unit is for being compressed each frame high-definition image in image stream data, and image compression obtained writes in video compress file with additional pattern;
Described frame information generates the unit image delta frame information for obtaining for the clear compression of images of each vertical frame dimension in image stream data, and is write in index file with additional pattern by the frame information generated.
Due in compression process to obtain for the clear compression of images of each vertical frame dimension image generates the frame information of correspondence and writes in index file with additional pattern, therefore in the follow-up process that compression video is processed, be convenient to post analysis and process.
After compression of images, it is possible to use known frame number searches corresponding timestamp information, or finds the compression image that this frame number is corresponding in compressed video file, in like manner, by known timestamp information, it is also possible to try to achieve the frame number of correspondence;
Actually, contact net carry out in the process of high-definition image collection, also need to be synchronously performed infrared image acquisition, owing to infrared camera is likely to different with the physical characteristic frame per second of high definition camera, the frame number of shooting per second is likely to difference, in subsequent processes, it is often necessary to search high-definition image and the infrared image of synchronization;Frame information in index file just becomes the benchmark that high-definition image is Tong Bu with infrared image, such as, timestamp by a certain infrared image, just can find the frame number of high-definition image in synchronization by this timestamp, the compression image in compressed video file is found out, thus realizing the synchronization of high-definition image and infrared image again through this frame number.

Claims (4)

1. the high-definition image compression method being applicable to contact net, it is characterised in that: comprise the following steps:
S1. the high-definition image flow data of railway contact line is obtained from high definition camera;
S2. each frame high-definition image in image stream data is taken out successively with the time order and function order of high definition camera shooting;
S3. judge that whether present frame high-definition image is the first two field picture of image stream data:
(1) if present frame high-definition image is the first two field picture of image stream data, step S4 is jumped to;
(2) if present frame high-definition image is not the first two field picture of image stream data, step S5 is jumped to;
S4. create video compress file and corresponding index file, and indexed file writes file header;
S5. present frame high-definition image is compressed, obtains compression image, and compression image is write in video compress file with additional pattern, generate corresponding frame information for compression image, and the frame information generated is write in index file with additional pattern;
S6. judge that whether present frame high-definition image is the last frame image of image stream data:
(1) if present frame high-definition image is the last frame image of image stream data, this second compression terminates;
(2) if present frame high-definition image is not the last frame image of image stream data, jump to step S3, next frame high-definition image is carried out the operation of step S3 ~ S6.
2. a kind of high-definition image compression method suitable in contact net according to claim 1, it is characterised in that: described step S4 includes following sub-step:
S41. video compress file and corresponding index file are created;
S42. writing file header in indexed file, the file header of write includes picture traverse information and the picture altitude information of video compress file.
3. a kind of high-definition image compression method suitable in contact net according to claim 1, it is characterised in that: described step S5 includes following sub-step:
S51. present frame high-definition image is compressed, obtains compression image, and currently available compression image is write in video compress file with additional pattern;
S52. generate corresponding frame information for current compression image, indexed file writes, with additional pattern, the frame information that current compression image is corresponding; The frame information of write includes compressing image data size information, the image start position information in video compress file and image capturing time stamp information.
4. the high-definition image compressibility being applicable to contact net, it is characterised in that: include data acquisition module and data processing module; Described data processing module includes video compress file creating unit, index file creation unit, image compression unit and frame information and generates unit:
Described data acquisition module for obtaining railway contact line high-definition image flow data from high definition camera;
Described video compress file creating unit is used for creating video compress file;
Described index file creation unit is used for creating index file;
Described video compressing unit is for being compressed each frame high-definition image in image stream data, and image compression obtained writes in video compress file with additional pattern;
Described frame information generates the unit image delta frame information for obtaining for the clear compression of images of each vertical frame dimension in image stream data, and is write in index file with additional pattern by the frame information generated.
CN201610047341.3A 2016-01-25 2016-01-25 High-definition image compression method and system suitable for catenary Pending CN105657427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610047341.3A CN105657427A (en) 2016-01-25 2016-01-25 High-definition image compression method and system suitable for catenary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610047341.3A CN105657427A (en) 2016-01-25 2016-01-25 High-definition image compression method and system suitable for catenary

Publications (1)

Publication Number Publication Date
CN105657427A true CN105657427A (en) 2016-06-08

Family

ID=56484271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610047341.3A Pending CN105657427A (en) 2016-01-25 2016-01-25 High-definition image compression method and system suitable for catenary

Country Status (1)

Country Link
CN (1) CN105657427A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030099292A1 (en) * 2001-11-27 2003-05-29 Limin Wang Macroblock level adaptive frame/field coding for digital video content
CN1852439A (en) * 2006-05-19 2006-10-25 北京中星微电子有限公司 Pick-up head and data processing apparatus
CN101179715A (en) * 2006-11-30 2008-05-14 腾讯科技(深圳)有限公司 Method and system of implementing compressed encoding simultaneously to multipath video source
CN101917622A (en) * 2010-08-24 2010-12-15 中国科学院光电技术研究所 14-bit width image compression hardware coder
CN102231826A (en) * 2011-03-14 2011-11-02 新奥特(北京)视频技术有限公司 Indexing method and system supporting frame accurate positioning of transport stream media file
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
CN104660711A (en) * 2015-03-13 2015-05-27 华存数据信息技术有限公司 Remote visualized application method based on virtualization of graphic processor
CN104717497A (en) * 2013-12-13 2015-06-17 北京润光泰力科技发展有限公司 JPEG_LS rule coding hardware achieving method based on scanning sequence changing
CN104853193A (en) * 2014-02-19 2015-08-19 腾讯科技(北京)有限公司 Video compression method, device and electronic equipment
CN105208395A (en) * 2015-09-16 2015-12-30 北京暴风科技股份有限公司 Method and system for error correction on time stamps for Android system hardware video decoding
CN105245912A (en) * 2015-10-21 2016-01-13 东方网力科技股份有限公司 Methods and devices for caching video data and reading video data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030099292A1 (en) * 2001-11-27 2003-05-29 Limin Wang Macroblock level adaptive frame/field coding for digital video content
CN1852439A (en) * 2006-05-19 2006-10-25 北京中星微电子有限公司 Pick-up head and data processing apparatus
CN101179715A (en) * 2006-11-30 2008-05-14 腾讯科技(深圳)有限公司 Method and system of implementing compressed encoding simultaneously to multipath video source
CN101917622A (en) * 2010-08-24 2010-12-15 中国科学院光电技术研究所 14-bit width image compression hardware coder
CN102231826A (en) * 2011-03-14 2011-11-02 新奥特(北京)视频技术有限公司 Indexing method and system supporting frame accurate positioning of transport stream media file
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
CN104717497A (en) * 2013-12-13 2015-06-17 北京润光泰力科技发展有限公司 JPEG_LS rule coding hardware achieving method based on scanning sequence changing
CN104853193A (en) * 2014-02-19 2015-08-19 腾讯科技(北京)有限公司 Video compression method, device and electronic equipment
CN104660711A (en) * 2015-03-13 2015-05-27 华存数据信息技术有限公司 Remote visualized application method based on virtualization of graphic processor
CN105208395A (en) * 2015-09-16 2015-12-30 北京暴风科技股份有限公司 Method and system for error correction on time stamps for Android system hardware video decoding
CN105245912A (en) * 2015-10-21 2016-01-13 东方网力科技股份有限公司 Methods and devices for caching video data and reading video data

Similar Documents

Publication Publication Date Title
CN107004271B (en) Display method, display apparatus, electronic device, computer program product, and storage medium
CN102759347B (en) Online in-process quality control device and method for high-speed rail contact networks and composed high-speed rail contact network detection system thereof
US8248474B2 (en) Surveillance system and surveilling method
CN103379266B (en) A kind of high-definition network camera with Video Semantic Analysis function
EP2903261B1 (en) Apparatus and method for detecting event from plurality of photographed images
CN103400499B (en) Ultra-high definition intelligent video electronic police system and vehicle violation judging method of ultra-high definition intelligent video electronic police system
KR101561626B1 (en) The Vehicle Black Box Capable of Real-Time Recognizing a License Number Plate for Moving Vehicle
CN102222104A (en) Method for intelligently extracting video abstract based on time-space fusion
CN103150901A (en) Abnormal traffic condition detection method based on vehicle motion vector field analysis
CN104980640A (en) Method and device for image photographing in driving
WO2024037408A1 (en) Underground coal mine pedestrian detection method based on image fusion and feature enhancement
CN105657428A (en) Infrared image compression method and system applied to contact network
CN106097246A (en) A kind of driving recording image processing method and system
CN104346927A (en) Things internet-based red light-running vehicle monitoring and shooting system
US9253450B2 (en) Total bus surveillance system
Wei et al. Street object detection/tracking for AI city traffic analysis
CN103428473A (en) Method and system for tracing suspects
CN105323501A (en) Concentrated video moving object marking method, playing method and apparatus thereof
CN108418892A (en) A kind of vehicle and the method and device of environment sensing data processing and storage
CN206322316U (en) Overheight Vehicles capturing system based on video detection
CN105657427A (en) High-definition image compression method and system suitable for catenary
CN112883836A (en) Video detection method for deformation of underground coal mine roadway
CN110379130B (en) Medical nursing anti-falling system based on multi-path high-definition SDI video
CN105025240A (en) Law enforcement recorder and control method thereof
CN111582334A (en) High-speed railway catenary image identification method combining YOLOv3 and SENEt

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160608

RJ01 Rejection of invention patent application after publication