Summary of the invention
Technical problem to be solved by this invention provides the method that the moving image in a kind of video monitoring obtains, and in order to meeting consumers' demand, to promote user experience, to improve the embedded system internal performance of video monitoring, and effectively reduces cost;
Another object of the present invention is that said method is applied in the reality, and moving image deriving means and system in a kind of video monitoring are provided, in order to guarantee said method realization and application in practice.
In order to address the above problem, the method that the embodiment of the invention provides the moving image in a kind of video monitoring to obtain comprises:
Moving image in the monitoring video image;
Storage card remaining space concordance list in the reading system internal memory obtains the remaining space information of current storage card, and described storage card remaining space concordance list is used to write down the remaining space information of the current storage card of searching at interval at preset timed intervals;
Described moving image is stored in the remaining space of described storage card.
Preferably, described method also comprises:
Upgrade described storage card remaining space concordance list.
Preferably, the step of described renewal remaining space concordance list comprises:
The remaining space information of the occupied current storage card of deletion from described storage card remaining space concordance list;
Search the remaining space of current storage card at preset timed intervals at interval, and in described storage card remaining space concordance list, add corresponding remaining space information.
Preferably, described step of searching the remaining space of current storage card comprises:
Read the FAT table of described storage card, search the remaining space correspondence bunch.
Preferably, the step of described storing moving image comprises:
Described moving image is stored in the remaining space bunch of the FAT16 file system of described storage card or FAT32 file system.
Preferably, the step of described monitoring motion image data comprises:
Whether the characteristic parameter of judging current video image satisfies certain threshold value, if then extracting described video image is moving image.
Preferably, described characteristic parameter comprises pixel value and/or brightness running parameter.
Preferably, described method also comprises:
Described motion image data is added timestamp information.
Preferably, described video image obtains for the connection layout image-position sensor.
The embodiment of the invention also provides the deriving means of the moving image in a kind of video monitoring, comprising:
The moving image monitoring modular is used for monitoring the moving image of video image;
The remaining space read module, be used to read the storage card remaining space concordance list of local internal memory, obtain the remaining space information of current storage card, described storage card remaining space concordance list is used to write down the remaining space information of the current storage card of searching at interval at preset timed intervals;
The moving image memory module is used for described moving image is stored to the remaining space of described storage card.
Preferably, described device also comprises:
The remaining space update module is used to upgrade described storage card remaining space concordance list.
Preferably, described remaining space update module comprises:
Spatial information deletion submodule is used for from the remaining space information of the occupied current storage card of described storage card remaining space concordance list deletion;
Remaining space is searched submodule, is used for searching at interval at preset timed intervals the remaining space of current storage card, and adds corresponding remaining space information in described storage card remaining space concordance list.
Preferably, described moving image monitoring modular comprises:
Feature is judged submodule, is used for judging whether the characteristic parameter of current video image satisfies certain threshold value when detecting motion, if then trigger and extract submodule;
Extract submodule, being used to extract described video image is moving image.
Wherein, described characteristic parameter comprises pixel value and/or brightness running parameter.
Preferably, described device further comprises:
Timestamp adds module, is used for described motion image data is added timestamp information.
The moving image that the embodiment of the invention also discloses in a kind of video monitoring obtains system, comprising:
Frequently image acquisition units is used to gather video image;
The moving image monitoring means is used for monitoring the moving image of video image;
The remaining space reading unit, the storage card remaining space concordance list that is used for the reading system internal memory, obtain the remaining space information of current storage card, described storage card remaining space concordance list is used to write down the remaining space information of the current storage card of searching at interval at preset timed intervals;
Storage card is used for described moving image is stored to its remaining space.
Compared with prior art, the present invention has the following advantages:
At first, the present invention uses the storage expansion of storage card as embedded system in the video monitoring, can be stored in the storage card immediately with monitoring the moving image that obtains in real time, local big capacity storage operation by this video monitoring system, can user friendly visit and operation, as the moving image in the storage card is carried out various local operations (to image in the storage card browse, download, deletion etc.), upload and with processing such as other user interactions, thereby meet consumers' demand, make the user obtain better experience;
Moreover, the present invention is by being provided with storage card remaining space concordance list in Installed System Memory, to write down the remaining space information of the current storage card of searching at interval according to Preset Time, when storing moving image, only need directly read the remaining space information of described concordance list, moving image is write corresponding remaining space get final product, and need when the write operation of each moving image, not carry out searching of remaining space.Adopt for the embedded system of video monitoring for the characteristic of low rate processors such as single-chip microcomputer, the speed of searching remaining space in the time of can effectively improving the moving image write operation, save the time of moving image storage, thereby effectively promoted the internal performance of video monitoring system;
And the present invention utilizes the embedded system of video monitoring to realize, need not by Network Transmission, or further externally carries out stores processor on the equipment, so can effectively reduce various costs.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
One of core idea of the embodiment of the invention is, by video image is monitored, obtain the moving image in the video image, storage card remaining space concordance list in the reading system internal memory then, obtain the remaining space information of current storage card, again moving image is stored in the corresponding remaining space.The present invention uses the storage expansion of storage card as embedded system in the video monitoring, can real-time storage monitor the moving image that obtains, by the local big capacity storage operation of this video monitoring system, thus user friendly visit and operation; And by storage card remaining space concordance list is set in Installed System Memory, when storing moving image, only need directly read the remaining space information of concordance list, moving image be write corresponding remaining space get final product, thereby effectively promote the internal performance of video monitoring system; Moreover the present invention utilizes the embedded system of video monitoring to realize, need not by Network Transmission, or further externally carries out stores processor on the equipment, effectively reduces various costs.
With reference to figure 1, show the flow chart of moving image acquisition methods embodiment 1 in a kind of video monitoring of the present invention, specifically can may further comprise the steps:
Step 101: the moving image in the monitoring video image;
In field of video monitoring, need the moving image in the video image of being monitored be detected usually, for example, use the visiting situation of video doorbell monitoring, when the visitor,, stay visitor's image document by the moving image in the monitoring video image; Indoor for another example monitoring supervisory control system during the no one, is opened this equipment among the manager, monitors indoor video image, if there is the people to swarm into, promptly can destroy current static image frame, obtains moving image.This step promptly obtains this detected moving image.
In embodiments of the present invention, can adopt and the characteristic parameter of the video image that obtains judged monitor moving image, particularly can comprise following substep:
Substep A1: whether the characteristic parameter of judging current video image satisfies certain threshold value, if then carry out substep A2; Otherwise carry out substep A3;
Substep A2: extracting described video image is moving image;
Substep A3: do not extract this video image.
Above-mentioned example is promptly sampled by two frame video image data to the certain hour of being separated by, and data from the sample survey compared, if comparative result shows this two frame image data and has bigger difference, so just think the motion that has object in the video data input scene, then extract this moving image; Otherwise just think that motion does not exist, handle, do not extract moving image and continue current video monitoring.
Preferably, described characteristic parameter can comprise pixel value and/or brightness running parameter etc.In practice, those skilled in the art can adopt or be provided with various characteristic parameters arbitrarily, and the present invention need not to make restriction to this.
Step 102: the remaining space concordance list of the storage card in the reading system internal memory obtains the remaining space information of current storage card; Wherein, described storage card remaining space concordance list is used to write down the remaining space information of current storage card;
Be well known that, storage card is the independent storage medium that is widely used at present on mobile phone, digital camera, portable computer, MP3 and other digital products, as SD card, XD image card, SM card, mmc card, CF card etc., its volume is small and exquisite, easy to carry, use is simple; Simultaneously, because most of storage cards have favorable compatibility, be convenient to swap data between different digital products.Along with the continuous development of digital product, the memory capacity of storage card constantly gets a promotion, and uses also and popularizes fast.Because digital product self performance and technical elements, the read or write speed of storage card always is difficult to meet the demands but in actual applications.
Usually, it has been remaining space with zone and remaining Free Region that the memory space of storage card is divided into, for the storage card of supporting the FAT file system, by its space address of FAT table record, when remaining space is occupied, then it is charged to and use the zone,, search remaining Free Region by systematic search FAT table if again when storage demand is arranged.This method is for low rate processors such as single-chip microcomputers, when write operation, search remaining space and often need long time, especially memory space is bigger, when the remaining space position relatively disperses, under extreme case, thisly search the time that accessing operation can spend several seconds even tens seconds and just can finish.
In order to make storage card have read or write speed faster, the embodiment of the invention is provided with storage card remaining space concordance list in Installed System Memory, this storage card remaining space concordance list has write down the remaining space information of the current storage card of searching at interval at preset timed intervals, that is to say, can generate described storage card remaining space concordance list by following steps:
Search the remaining space of current storage card at preset timed intervals at interval, and in described storage card remaining space concordance list, add corresponding remaining space information;
Preferably, the FAT that searches FAT16/32 file system that can be by reading described storage card of described storage card remaining space show to search the remaining space correspondence bunch.
In practice, FAT table seldom only need be searched at every turn at preset timed intervals at interval by system, and the time that takies is very short, can't influence other operation of system.And bunch information of the remaining space correspondence that is found leaves in the remaining space concordance list, in case when storage demand is arranged, can directly from this table, obtain the information of remaining space, thus the time of searching remaining space when having reduced write operation.
Step 103: described moving image is stored in the remaining space of described storage card.
In the present embodiment, described moving image can be stored in the remaining space bunch of the FAT16 file system of described storage card or FAT32 file system.Owing to the file system of storage card is to create for the data that write storage card are correctly visited in the host computer that Windows or (SuSE) Linux OS are housed, thereby, in embodiments of the present invention, for the image that is stored in the FAT16/32 file system, operations such as people can read easily, visit.
In practice, during memory image, can also be as required, be that image adds timestamp information, to be convenient for people to carrying out mark, to search and classification etc.
With reference to figure 2, show the flow chart of the moving image acquisition methods embodiment 2 in a kind of video monitoring of the present invention, specifically can may further comprise the steps:
Step 201: the moving image in the monitoring video image;
Step 202: the remaining space concordance list of storage card in the reading system internal memory, obtain the remaining space information of current storage card;
Wherein, described storage card remaining space concordance list is used to write down the remaining space information of current storage card;
Step 203: described moving image is stored in the remaining space of described storage card;
Step 204: upgrade described storage card remaining space concordance list.
Preferably, described step 204 can comprise following substep:
Substep B1: the remaining space information of the occupied current storage card of deletion from described storage card remaining space concordance list;
Substep B2: search the remaining space of current storage card at preset timed intervals at interval, and in described storage card remaining space concordance list, add corresponding remaining space information.
Preferably, the step of the described remaining space of searching current storage card can for: read the FAT table of described storage card, search the remaining space correspondence bunch; In this case, the step of described storing moving image can for: described moving image is stored in the remaining space bunch of the FAT16 file system of described storage card or FAT32 file system.
Present embodiment is by reading the FAT table of current storage card at preset timed intervals at interval, search the remaining space correspondence bunch, and in described storage card remaining space concordance list, add the method for corresponding remaining space information, search remaining space during to write operation and optimize.When storage demand, directly read the remaining space concordance list obtaining remaining space, thereby the time that will search remaining space reduces to 0.Because of the time of this action need very short, therefore can not influence other operation of system.Moreover present embodiment is by the remaining space information of the occupied current storage card of deletion from described storage card remaining space concordance list; And continue to search at interval at preset timed intervals the remaining space of current storage card, and in described storage card remaining space concordance list, add corresponding remaining space information, this remaining space concordance list of immediate updating is to improve the utilance of current storage card.In this case, even use jumbo storage card, can guarantee that also moving image can store in the storage card timely.
With reference to figure 3, show the flow chart of the moving image acquisition methods embodiment 3 in a kind of video monitoring of the present invention, specifically can may further comprise the steps:
Step 301: obtain video image;
Described video image can obtain in several ways, as the video monitoring probe of special use, CMOS Sensor, video camera etc., preferably, described video image can obtain by the connection layout image-position sensor, certainly, it all is feasible that those skilled in the art adopt any mode of obtaining video image, and the present invention need not to make restriction to this.
Step 302: detect the moving image that obtains in the described video image;
Whether in practice, detect present image is that the method for moving image can comprise following substep:
Substep C1: image-region is divided into 16 different motion detection windows;
Substep C2: the different motion detection sensitivity of each window is set;
Substep C3: the brightness of judging the every frame video image that obtains changes whether satisfy certain threshold value;
Substep C4: if then extracting video image is moving image.
Certainly, said method is only as example, in field of video monitoring, can also adopt characteristic parameter such as pixel value, the brightness running parameter etc. of video image are carried out statistical analysis, to detect the method for moving image motion, to this, those skilled in the art can adopt any its familiar mode to realize that the present invention need not to make qualification to this.
Step 303: the storage card remaining space concordance list in the reading system internal memory;
Storage card remaining space concordance list is used to write down the remaining space information of current storage card.In practice, system can read the less FAT table of the FAT16/32 file system of current storage card every the fixed time, with search the remaining space correspondence bunch, and corresponding remaining space bunch information left in the remaining space concordance list.When storage demand, can directly read the remaining space concordance list to obtain the information of remaining space.
Step 304: judge whether described storage card remaining space concordance list is empty, and if not, then execution in step 305; If then execution in step 306;
Step 305: locate corresponding remaining space according to the remaining space information that from described storage card remaining space concordance list, reads, described moving image is stored in the described remaining space;
Step 306: the prompting storage card has not had the information of enough remaining space storing moving images;
Step 307: for the moving image in the storage card adds timestamp information;
Step 308: upgrade described storage card remaining space concordance list.
Need to prove that what each embodiment in this specification stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For aforesaid method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 4, show the moving image deriving means example structure block diagram in a kind of video monitoring of the present invention, can comprise with lower module:
Moving image monitoring modular 401 is used for monitoring the moving image of video image;
Remaining space read module 402, the storage card remaining space concordance list that is used for the reading system internal memory, obtain the remaining space information of current storage card, described storage card remaining space concordance list is used to write down the remaining space information of the current storage card of searching at interval at preset timed intervals;
Moving image memory module 403 is used for described moving image is stored to the remaining space of described storage card.
Wherein, moving image monitoring modular 401 may further include:
Feature is judged submodule 4011: be used for judging whether the characteristic parameter of current video image satisfies certain threshold value when detecting motion, if then trigger and extract submodule 4012;
Extract submodule 4012: being used to extract described video image is moving image.
Preferably, described characteristic parameter can comprise pixel value and/or brightness running parameter.
Preferably, the device of present embodiment can also comprise:
Remaining space update module 404 is used to upgrade described storage card remaining space concordance list.
In embodiments of the present invention, described remaining space update module 404 may further include:
Spatial information deletion submodule 4041 is used for from the remaining space information of the occupied current storage card of described storage card remaining space concordance list deletion;
Remaining space is searched submodule 4042, is used for searching at interval at preset timed intervals the remaining space of current storage card, and adds corresponding remaining space information at described storage card remaining space concordance list.
Preferably, the device of present embodiment can also comprise:
Timestamp adds module, is used for described motion image data is added timestamp information.
With reference to figure 5, show application device embodiment shown in Figure 4 and carry out the flow chart that the moving image in the video monitoring obtains, can may further comprise the steps:
Step 501: the moving image monitoring modular is judged the motion of submodule detected image by described feature, and extracts moving image by described extraction submodule;
Step 502: the storage card remaining space concordance list in the remaining space read module reading system internal memory obtains the remaining space information of current storage card;
Step 503: the moving image memory module is stored to described moving image in the remaining space of described storage card;
Step 504: the remaining space update module is upgraded described storage card remaining space concordance list.
In practice, can also add module by timestamp described moving image is added timestamp information.
Because embodiment shown in Figure 5 can correspondence be applicable among the aforesaid method embodiment that so description is comparatively simple, not detailed part can be referring to the description of this specification front appropriate section.
With reference to figure 6, show the structured flowchart that moving image in a kind of video monitoring of the present invention obtains system embodiment, can comprise with lower unit:
Video image acquisition unit 601 is used to gather video image;
Moving image monitoring means 602 is used for monitoring the moving image of video image;
Remaining space reading unit 603, be used to read the storage card remaining space concordance list of current system, obtain the remaining space information of current storage card, described storage card remaining space concordance list is used to write down the remaining space information of the current storage card of searching at interval at preset timed intervals;
Storage card 604 is used for described moving image is stored to its remaining space.
For making those skilled in the art understand the present invention better, below be that example illustrates that moving image of the present invention obtains system embodiment with indoor monitoring supervisory control system.
Indoor monitoring monitoring can be applicable to occasions such as private residence, office space, when these occasion unattended operations, open watch-dog, the video source image is gathered by the video image acquisition unit by system, exports to the moving image monitoring means after handling through the video monitoring chip; The motion of moving image monitoring means detected image if motion is arranged, is then extracted moving image; The remaining space reading unit reads current storage card remaining space information; Preserve the remaining space of moving image to storage card.Certainly, after detecting image motion, can also be arranged on storing moving image according to system and connect warning device processing such as report to the police simultaneously.
In video monitoring system of the present invention, can also connect storage card by high speed SPI interface, carry out image storage, browse, operation such as deletion.After storage card is pulled out, can directly connect PC from video monitoring system, the image in the storage card be operated by PC by card reader.
Because embodiment shown in Figure 6 can correspondence be applicable among the aforesaid method embodiment that so description is comparatively simple, not detailed part can be referring to the description of this specification front appropriate section.
More than moving image acquisition methods, Apparatus and system in a kind of video monitoring provided by the present invention are described in detail, used specific case herein core idea of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.