A kind of image processing method of automobile data recorder, device and electronic equipment
Technical field
The present embodiments relate to technical field of image processing more particularly to a kind of image processing methods of automobile data recorder
Method, device and electronic equipment.
Background technology
Automobile data recorder is the instrument of the relevent informations such as image and sound in record vehicle traveling way, installs driving recording
It after instrument, makes video recording by starting the engine with that can record a video, regarding for running car overall process is able to record through the photography of high definition camera lens
Frequency image and sound, internal sensor can set the susceptibility of impact force, when extraneous impact force is more than set value, lead
Causing the field data of the impact force will be recorded, and when accident occurs, evidence can be provided for traffic accident, ensures driver
Self right.Like the people of self-driving travel, the process for conquering difficulties and dangers can also be recorded with it.It records a video during driving when walking,
Time, speed, position are all recorded in video recording simultaneously, suitable black box.
However, inventor has found during invention is realized, there are following defects for existing automobile data recorder:
Automobile data recorder is upon actuation start recording video image, and taken all video images are all stored
In RAM card, when vehicle is out of service, if ambient enviroment does not change, the picture phase taken by automobile data recorder
Together, but still video image can be stored, so as to increase storage load, wastes memory space, increase cost.
Invention content
The embodiment of the present invention aims to overcome that prior art automobile data recorder can not handle the technology of image information and ask
Topic provides the image processing method and device of a kind of automobile data recorder.
The embodiment of the present invention provides a kind of image processing method of automobile data recorder, including:
The first image and the second image are extracted in the video shot with video-corder from automobile data recorder;
Judge whether described first image and second image are identical;
When described first image is identical with second image, described first image and the second image are merged.
Further, it is described to merge described first image and the second image, including:
Described first image is parsed to obtain and associated first image information of described first image;
Second image is parsed to obtain and associated second image information of second image;
Described first image information and second image information are merged into third image information;
Described first image is deleted, second image information is updated to the third image information.
Further, described first image information includes first time information, when second image information includes second
Between information.
It is further, described that described first image information and second image information are merged into third image information,
Including:
The first time information is added to second temporal information, generates third image information.
Further, the first time information is the playing duration of described first image, and second temporal information is
The playing duration of second image.
The embodiment of the present invention also provides a kind of image processing apparatus of automobile data recorder, including:
Extraction unit, for extracting the first image and the second image from the video that automobile data recorder is shot with video-corder;
Judging unit, for judging whether described first image and second image are identical;
Combining unit, for when described first image is identical with second image, by described first image and described
Second image merges.
Further, the combining unit includes:
First parsing subunit, for being parsed to obtain and described first image associated first to described first image
Image information;
Second parsing subunit, for being parsed to obtain and second image associated second to second image
Image information;
Merge subelement, for described first image information and second image information to be merged into third image letter
Breath;
Subelement is updated, for deleting described first image, second image information is updated to the third image
Information.
Further, described first image information includes first time information, when second image information includes second
Between information.
Further, the merging subelement is specially:
The first time information is added to second temporal information, generates third image information.
Further, the first time information is the playing duration of described first image, and second temporal information is
The playing duration of second image.
The embodiment of the present invention also provides a kind of electronic equipment, including:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be performed by one processor, and described instruction is by least one place
It manages device to perform, so that at least one processor can:
The first image and the second image are extracted in the video shot with video-corder from automobile data recorder;
Judge whether described first image and second image are identical;
When described first image is identical with second image, described first image breath and second image are closed
And.
Further, it is described to merge described first image and the second image, including:
Described first image is parsed to obtain and associated first image information of described first image;
Second image is parsed to obtain and associated second image information of second image;
Described first image information and second image information are merged into third image information;
Described first image is deleted, second image information is updated to the third image information.
Further, described first image information includes first time information, when second image information includes second
Between information.
It is further, described that described first image information and second image information are merged into third image information,
Including:
The first time information is added to second temporal information, generates third image information.
Further, the first time information is the playing duration of described first image, and second temporal information is
The playing duration of second image.
The embodiment of the present invention has the advantages that:By will be extracted from the video that automobile data recorder is shot with video-corder
One image and the second image are compared, and when the first image is identical with the second image, the first image and the second image are merged,
Identical image will not be stored so as to fulfill automobile data recorder, reduce storage load, save memory space, reduce into
This.
Description of the drawings
Referring to attached drawing, the disclosure of the embodiment of the present invention will be easier to understand.It should be understood that:These attached drawings are only used
In the purpose of explanation, and it is not intended to and the protection domain of the embodiment of the present invention is construed as limiting.In figure:
Fig. 1 is a kind of flow chart of the image processing method for automobile data recorder that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart of the image processing method for automobile data recorder that alternative embodiment of the present invention provides;
Fig. 3 is a kind of flow chart of the image processing method for automobile data recorder that another embodiment of the present invention provides;
Fig. 4 is a kind of structure diagram of the image processing apparatus for automobile data recorder that one embodiment of the invention provides;
Fig. 5 is a kind of structure diagram of the image processing apparatus for automobile data recorder that alternative embodiment of the present invention provides;
Fig. 6 is a kind of structure diagram of the image processing apparatus for automobile data recorder that another embodiment of the present invention provides;
Fig. 7 is a kind of electronic equipment of the image processing method for execution automobile data recorder that eighth embodiment of the invention provides
Hardware architecture diagram.
Specific embodiment
Further illustrate the present invention the specific embodiment of embodiment below in conjunction with the accompanying drawings.
It is readily appreciated that, technical solution according to embodiments of the present invention, in the case where not changing connotation of the embodiment of the present invention, this
The various structures mode and realization method that the those skilled in the art in field can be replaced mutually.Therefore, detailed description below
And attached drawing is only the exemplary illustration to the technical solution of the embodiment of the present invention, and it is not to be construed as the complete of the embodiment of the present invention
Portion or be considered as defines or limits inventive embodiments technical solution.
It mentions in the present specification or up, down, left, right, before and after, front, the back side, top, the bottom that may mention etc.
Orientation term is defined relative to each attached construction shown in figure, they are opposite concepts, and it is therefore possible to can root
Correspondingly changed according to its residing different location, different use states.It so also should not be by these or others side
Position term is construed to restricted term.
Embodiment one
Fig. 1 show a kind of flow chart of the image processing method of automobile data recorder of one embodiment of the invention offer, packet
It includes:
Step S101:The first image and the second image are extracted in the video shot with video-corder from automobile data recorder;
Step S102:Judge whether described first image and second image are identical;
Step S103:When described first image is identical with second image, by described first image and described second
Image merges.
The embodiment of the present invention passes through the first image and the second image that will be extracted from the video that automobile data recorder is shot with video-corder
It is compared, when the first image is identical with the second image, the first image and the second image is merged, so as to fulfill driving recording
Instrument will not store identical image, reduce storage load, save memory space, reduce cost.
Embodiment two
Fig. 2 show a kind of flow chart of the image processing method for automobile data recorder that alternative embodiment of the present invention provides,
Including:
Step S201:The first image and the second image are extracted in the video shot with video-corder from automobile data recorder;
Step S202:Judge whether described first image and second image are identical;
Step S203:When described first image is identical with second image, described first image parse
To with associated first image information of described first image;
Step S204:Second image is parsed to obtain and associated second image information of second image;
Step S205:Described first image information and second image information are merged into third image information;
Step S206:Described first image is deleted, second image information is updated to the third image information.
The embodiment of the present invention passes through the first image and the second image that will be extracted from the video that automobile data recorder is shot with video-corder
Be compared, when the first image is identical with the second image, parse the first image and the second image, obtain the first image information and
First image information and the second image information are merged into third image information, and delete the first image by the second image information, will
Second image information is updated to third image information, will not store identical image so as to fulfill automobile data recorder, subtract
Few storage load, saves memory space, reduces cost.
Embodiment three
Fig. 3 show a kind of flow chart of the image processing method of automobile data recorder of another embodiment of the present invention offer,
Including:
Step S301:The first image and the second image are extracted in the video shot with video-corder from automobile data recorder;
Step S302:Judge whether described first image and second image are identical;
Step S303:When described first image information is identical with second image information, to described first image into
Row parsing obtains and associated first image information of described first image;
Specifically, the first image information includes first time information, first time information is the playing duration of the first image.
Step S304:Second image is parsed to obtain and associated second image information of second image;
Specifically, the second image information includes the second temporal information, the second temporal information is the playing duration of the second image.
Step S305:The first time information is added to second temporal information, generates third image information;
Step S306:Described first image is deleted, after second image information is updated to the third image information.
It is exemplified below, it is specific as follows:
One section of video recording in 1 minute is recorded so that 10 frames/minute is stored as an example by automobile data recorder, 10 figures of storage per minute
As i.e. image 1- images 10, if it is the same, for example image 1 is identical to image 5 wherein to have 5 pictures, if not into
If row processing, then need to store 10 images.According to the method for the embodiment of the present invention, image 1 and image 2 are compared
When, image 1 is identical with image 2, then deletes image 1, retains image 2, while 1 residence time of image is added to image 2
In time in, so as to form third image, third image includes the content information of image 2 and image 1 and image 2 are stopped
Total time, and so on, until image 5, image 5 includes the content information of image 5 and image 1- Fig. 5 stopped it is total
Synchronic, and the image information of image 5 is stored, it will not thus store the image letter of image 1, image 2, image 3 and image 4
Breath achievees the effect that video compress by way of reducing image storage, can store more video informations.When needing to check row
During video information in vehicle recorder, the content information of image 5 need to be only played according to the duration of image 5, then start broadcasting figure
It is identical with the effect acquired by persistently record image in this way as 6.
The embodiment of the present invention passes through the first image and the second image that will be extracted from the video that automobile data recorder is shot with video-corder
Be compared, when the first image is identical with the second image, parse the first image and the second image, obtain the first image information and
Second image information, and first time information is added to the second temporal information, third image information is generated, deletes the first figure
Second image information is updated to third image information by picture, so as to fulfill automobile data recorder will not by identical image information into
Row storage reduces storage load, saves memory space, reduce cost.
Example IV
Fig. 4 show a kind of structural representation of the image processing apparatus of automobile data recorder of one embodiment of the invention offer
Figure, including:
Extraction unit 41, for extracting the first image and the second image from the video that automobile data recorder is shot with video-corder;
Judging unit 42, for judging whether described first image and second image are identical;
Combining unit 43, for when described first image is identical with second image, by described first image and institute
State the merging of the second image.
The embodiment of the present invention, by extraction unit extraction from the first image in the video that automobile data recorder is shot with video-corder and the
First image of extraction and the second image are compared by two images, judging unit, when the first image is identical with the second image,
And first image and the second image merge, identical image will not be stored so as to fulfill automobile data recorder, reduce storage
Load saves memory space, reduces cost.
Embodiment five
Fig. 5 show a kind of structural representation of the image processing apparatus for automobile data recorder that alternative embodiment of the present invention provides
Figure, including:
Extraction unit 51, for extracting the first image and the second image from the video that automobile data recorder is shot with video-corder;
Judging unit 52, for judging whether described first image and second image are identical;
First parsing subunit 53, for being parsed to obtain and described first image associated to described first image
One image information;
Second parsing subunit 54, for being parsed to obtain and second image associated to second image
Two image informations;
Merge subelement 55, for described first image information and second image information to be merged into third image letter
Breath;
Subelement 56 is updated, for deleting described first image, second image information is updated to the third figure
As information.
The embodiment of the present invention extracts the first image and the second image by extraction unit, and judging unit is by the first of extraction
Image and the second image are compared, when the first image is identical with the second image, the first parsing subunit and the second parsing
The first image of unit resolves and the second image obtain the first image information and the second image information, by merging subelement by the
One image information merges into third image information with the second image information, and the first image is deleted finally by update subelement, will
Second image information is updated to third image information, will not store identical image so as to fulfill automobile data recorder, subtract
Few storage load, saves memory space, reduces cost.
Embodiment six
Fig. 6 show a kind of structural representation of the image processing apparatus of automobile data recorder of another embodiment of the present invention offer
Figure, including:
Extraction unit 61, for extracting the first image and the second image from the video that automobile data recorder is shot with video-corder;
Judging unit 62, for judging whether described first image and second image are identical;
First parsing subunit 63, for being parsed to obtain and described first image associated to described first image
One image information;
Second parsing subunit 64, for being parsed to obtain and second image associated to second image
Two image informations;
Merge subelement 65, for the first time information to be added to second temporal information, generate third figure
As information;
Subelement 66 is updated, for deleting described first image, second image information is updated to the third figure
As information.
It is exemplified below, it is specific as follows:
One section of video recording in 1 minute is recorded so that 10 frames/minute is stored as an example by automobile data recorder, 10 figures of storage per minute
As i.e. image 1- images 10, if it is the same, for example image 1 is identical to image 5 wherein to have 5 pictures, if not into
If row processing, then need to store 10 images.According to the method for the embodiment of the present invention, image 1 and image 2 are compared
When, image 1 is identical with image 2, then deletes image 1, retains image 2, while 1 residence time of image is added to image 2
In time in, so as to form third image, third image includes the content information of image 2 and image 1 and image 2 are stopped
Total time, and so on, until image 5, image 5 includes the content information of image 5 and image 1- Fig. 5 stopped it is total
Synchronic, and the image information of image 5 is stored, it will not thus store the image letter of image 1, image 2, image 3 and image 4
Breath achievees the effect that video compress by way of reducing image storage, can store more video informations.When needing to check row
During video information in vehicle recorder, the content information of image 5 need to be only played according to the duration of image 5, then start broadcasting figure
It is identical with the effect acquired by persistently record image in this way as 6.
The embodiment of the present invention extracts the first image and the second image by extraction unit, and judging unit is by the first of extraction
Image and the second image are compared, when the first image is identical with the second image, the first parsing subunit and the second parsing
The first image of unit resolves and the second image obtain the first image information and the second image information, by merging subelement by the
One temporal information is added to the second temporal information, deletes the first image finally by update subelement, by the second image information more
It is newly third image information, identical image will not be stored so as to fulfill automobile data recorder, reduces storage load, save
Memory space reduces cost.
Embodiment seven
Seventh embodiment of the invention provides a kind of nonvolatile computer storage media, and the computer storage media is deposited
Computer executable instructions are contained, which can perform the driving recording in above-mentioned any means embodiment
The image processing method of instrument.
Embodiment eight
The electronics for being illustrated in figure 7 the image processing method of the execution automobile data recorder of eighth embodiment of the invention offer is set
Standby hardware architecture diagram, mainly includes:At least one processor 71;And at least one 71 communication link of processor
The memory 72 connect;Wherein, the memory 72 is stored with the instruction that can be performed by a processor 71, instructs at least one
Processor 71 performs, so that at least one processor 71 is able to carry out method flow as shown in Figure 1-Figure 3.
Performing the electronic equipment of the image processing method of automobile data recorder can also include:Input unit 73 and output device
74。
Processor 71, memory 72, input unit 73 and output device 74 can be connected by bus or other modes,
In Fig. 7 for being connected by bus.
Memory 72 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the image processing method of the automobile data recorder in the embodiment of the present application
Corresponding program instruction/the module of method, for example, Fig. 1-method flow shown in Fig. 3 and Fig. 4-extraction unit shown in fig. 6, sentencing
Disconnected unit, the first parsing subunit, the second parsing subunit, merges subelement, update subelement at combining unit.Processor 71
Non-volatile software program, instruction and the module being stored in by operation in memory 72, so as to perform various functions application
And the image processing method of data processing, i.e. automobile data recorder in realization above-described embodiment.
Memory 72 can include storing program area and storage data field, wherein, storing program area can storage program area,
At least one required application program of function;Storage data field can store the use institute of the image processing apparatus of automobile data recorder
Data of establishment etc..In addition, memory 72 can include high-speed random access memory, non-volatile memories can also be included
Device, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments
In, memory 72 is optional including relative to the remotely located memory of processor 71, these remote memories can pass through network
It is connected to the device for the image processing method for performing automobile data recorder.The example of above-mentioned network includes but not limited to internet, enterprise
Industry intranet, LAN, mobile radio communication and combinations thereof.
The user that input unit 73 can receive input clicks and generates the use with the image processing apparatus of automobile data recorder
The signal input that family is set and function control is related.Output device 74 may include that display screen etc. shows equipment.
It is stored in memory 72 in one or more of modules, is run when by one or more processor 71
When, perform the image processing method of the automobile data recorder in above-mentioned any means embodiment.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) electronic control unit (Electronic Control Unit, ECU) is also known as " car running computer ", " vehicle-mounted computer "
Deng.Mainly by microprocessor (CPU), memory (ROM, RAM), input/output interface (I/O), analog-digital converter (A/D) and
The large scale integrated circuits such as shaping, driving form.
(2) mobile communication equipment:The characteristics of this kind equipment is that have mobile communication function, and to provide speech, data
It communicates as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(3) super mobile personal computer equipment:This kind equipment belongs to the scope of personal computer, there is calculating and processing work(
Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc..
(4) portable entertainment device:This kind equipment can show and play multimedia content.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(5) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(6) other have the function of the electronic device of data interaction.
In addition, the logical order in above-mentioned memory 72 can be realized by the form of SFU software functional unit and is used as solely
Vertical product is sold or in use, can be stored in a computer read/write memory medium.Based on such understanding, this hair
The part or the part of the technical solution that bright technical solution substantially in other words contributes to the prior art can be with soft
The form of part product embodies, which is stored in a storage medium, including some instructions making
Mobile terminal (can be personal computer, server or the network equipment etc.) performs each embodiment institute of the present invention
State all or part of step of method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with
Store the medium of program code.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can
To be or may not be physically separate, the component shown as unit may or may not be physics list
Member, you can be located at a place or can also be distributed in multiple network element.It can be selected according to the actual needs
In some or all of module realize the purpose of the embodiment of the present invention.Those of ordinary skill in the art are not paying wound
In the case of the labour for the property made, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
Technical solution is stated substantially in other words to embody the part that the prior art contributes in the form of software product, it should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers
It enables and (can be personal computer, server or the network equipment etc.) so that computer equipment is used to perform each implementation
Method described in certain parts of example or embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the embodiment of the present invention rather than it is limited
System;Although the embodiment of the present invention is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should
Understand:It can still modify to the technical solution recorded in foregoing embodiments or to which part technical characteristic
Carry out equivalent replacement;And these modifications or replacement, various embodiments of the present invention skill that it does not separate the essence of the corresponding technical solution
The spirit and scope of art scheme.