CN106204414A - A kind of method and system of dynamic image caching - Google Patents

A kind of method and system of dynamic image caching Download PDF

Info

Publication number
CN106204414A
CN106204414A CN201610639789.4A CN201610639789A CN106204414A CN 106204414 A CN106204414 A CN 106204414A CN 201610639789 A CN201610639789 A CN 201610639789A CN 106204414 A CN106204414 A CN 106204414A
Authority
CN
China
Prior art keywords
buffer
image
switch module
caching
connection
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
CN201610639789.4A
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.)
Lampson Eye (beijing) Technology Co Ltd
Original Assignee
Lampson Eye (beijing) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lampson Eye (beijing) Technology Co Ltd filed Critical Lampson Eye (beijing) Technology Co Ltd
Priority to CN201610639789.4A priority Critical patent/CN106204414A/en
Publication of CN106204414A publication Critical patent/CN106204414A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Abstract

The present invention relates to the method and system of a kind of dynamic image caching, its method includes: step 1: receive the image of collecting device collection as present image;Step 2: judge whether switch module is connected with the first buffer, if it is, using the first buffer as current buffer, perform step 3;Otherwise, using the second buffer as current buffer, perform step 3;Step 3: after being transferred in current buffer by present image, disconnects the connection of switch module and current buffer, is connected with free buffer device by switch module;Step 4: present image is transferred to external equipment by current buffer;Step 5: judge that collecting device the most also sends image, if it is, perform step 1;Otherwise, terminate.The present invention not frame losing processes, and ad hoc two frames wait buffer, queue processing Frame;Double buffer processing modules, quickly carry out image comparison;Speed is faster, it is achieved efficiently, economical;Comparison time shortens, and reduces cost.

Description

A kind of method and system of dynamic image caching
Technical field
The present invention relates to the method and system of a kind of dynamic image caching, belong to field of computer technology.
Background technology
Along with the most progressive social and each side is for an urgent demand of auto authentication fast and effectively, biological Feature identification technique has obtained development at full speed in recent decades.As a kind of inherent attribute of people, and have the strongest Self stability and individual difference, biological characteristic becomes the most preferable foundation of auto authentication.Current biological characteristic Identification technology mainly includes: fingerprint recognition, retina identification, iris identification, Gait Recognition, hand vein recognition, recognition of face etc.. Compared with other recognition methodss, recognition of face is owing to having directly, friendly, convenient feature, user without any mental maladjustment, It is prone to be accepted by user, thus has obtained studying widely and applying.In addition, we can also be to the knot of recognition of face The most for further analysis, obtain the sex about people, expression, many extra abundant informations such as age, extend face and know Other application prospect.Current face recognition technology has mainly been applied to the following aspects:
(1) criminal investigation and case detection public security department stores the photo of suspect in archives economy, when crime scene or by it After his approach obtains the photo of a certain suspect or the description of its facial characteristics, confirmation can be searched rapidly from data base, Substantially increase the accuracy and efficiency of criminal investigation and case detection.
(2) certificate verification is to check someone identity at many occasions (such as Haikou, airport, secret department etc.) certificate verification A kind of conventional means, and identity card, a lot of other certificates such as driver's license have photo, use face recognition technology, it is possible to Completed checking by machine and identify work, thus realize automatic intelligent management.
(3) video monitoring is in many banks, and company, public place etc. is designed with the video monitoring of 24 hours.Different when having Reason condition or when having stranger to swarm into, needs real-time tracking, monitoring, identifies and warning etc..The image collected is entered by these needs Row concrete analysis, and the detection of face to be used, follow the tracks of and identification technology.
(4) wide range of in-let dimple in-let dimple, had both included at building, the safety inspection of the porch such as house, Also include the authentication before entering computer system or intelligence channel.
(5) Expression analysis is according to the changes in faces feature in facial image, identifies and analyze the affective state of people, such as height Emerging, angry etc..Additionally, face recognition technology is also at medical science, file administration, human face animation, the aspects such as face models, video conference Also there is huge application prospect.
(6) recognition of face also has some interesting useful application, is such as capable of identify that the intelligent toy of mastership, family Political affairs robot, there is the virtual game player etc. of true image surface.
Summary of the invention
The technical problem to be solved is not have data latency buffer area for prior art to exist, and so may be used The probability losing data can be had, may have serious consequences;Bus work frequently, may cause the burden of CPU more Come the heaviest, finally result in system crash;In data handling, the current frame data that only process, so at time one-tenth for prior art Can be bigger on Ben;The deficiency that the time that processes in prior art is slower, it is provided that a kind of Double Register processes the dynamic image of image The method and system of caching.
The technical scheme is that a kind of method that dynamic image caches, including following Step:
Step 1: receive the image of collecting device collection as present image;
Step 2: judge whether switch module is connected with the first buffer, if it is, using the first buffer as currently Buffer, the second buffer, as free buffer device, performs step 3;Otherwise, using the second buffer as current buffer, the One buffer, as free buffer device, performs step 3;
Step 3: after being transferred in current buffer by present image, disconnects the connection of switch module and current buffer, Switch module is connected with free buffer device;
Step 4: present image is transferred to external equipment by current buffer;
Step 5: judge that collecting device the most also sends image, if it is, perform step 1;Otherwise, terminate.
The invention has the beneficial effects as follows: not frame losing processes, ad hoc two frames wait buffer, queue processing Frame;Double Buffer processing module, quickly carries out image comparison, waits buffer, queue processing Frame, it is achieved no by ad hoc two frames Frame losing processes;Data put together and carry out, into machine and storage, to avoid bus operation frequently, offloading the CPU;Speed is more Hurry up, it is achieved efficiently, economical;Image comparison time shortens, and reduces cost.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in described step 3, after current buffer receives present image, the information that sends is to switch module;Control is opened Close module and disconnect the connection with current buffer, set up the connection with free buffer device.
Use above-mentioned further scheme to provide the benefit that, control switch module by information, connection can be made in time to break Open, it is to avoid occur that continuous image image being inputted same buffer and occur covers phenomenon, it is ensured that two buffers are alternately Receive image.
Further, step 12 is also included between described step 1 and step 2:
Present image is stored in temporary buffer as Waiting Graph picture, using the image that is stored in the earliest in temporary buffer as Present image exports, and performs step 2.
Use above-mentioned further scheme to provide the benefit that, by the addition of temporary buffer, can delay first, second The image that storage has little time to process is stored temporarily in temporary buffer, it is to avoid asking of the frame losing occurred because of having little time to process Topic.
Further, all images stored are ranked up, according to advanced person by described temporary buffer according to the access time First go out principle output image.
Use above-mentioned further scheme to provide the benefit that, ensure that picture frame by time-sequencing and first in first out Because inserting temporary buffer, entanglement will not occur, enter temporary buffer and output temporary buffer ensures same order.
Further, the memory space of described temporary buffer is set as at least two frames.
Using above-mentioned further scheme to provide the benefit that, temporary buffer only plays the left and right of temporal cache, it is not necessary to Excessive memory space, it is possible to store the image that a few frame has little time to process, in the case of ensureing not frame losing, by reducing Memory space is that system takies less memory headroom, speed up processing.
The technical scheme is that the system that a kind of dynamic image caches, including:
Receiver module, receives the image that collecting device gathers;
Switch module, is connected with in two buffers, and by this connection, receiver module is sent to correspondence In buffer;
Two buffers, are alternately received the image transmitted by switch module, and the image received are sent to outside In equipment.
On the basis of technique scheme, the present invention can also do following improvement.
Further, said two buffer includes the first buffer and the second buffer, when switch module and the first caching Device is connected, and the first buffer receives image;When switch module and the second buffer are connected, the second buffer receives image.
Further, after described first buffer receives image, the information that sends is to switch module;Control switch module disconnect with The connection of the first buffer, sets up the connection with the second buffer;
After described second buffer receives image, the information that sends is to switch module;Control switch module and disconnect slow with second The connection of storage, sets up the connection with the first buffer.
Use above-mentioned further scheme to provide the benefit that, control switch module by information, connection can be made in time to break Open, it is to avoid occur that continuous image image being inputted same buffer and occur covers phenomenon, it is ensured that two buffers are alternately Receive image.
Further, temporary buffer is also included between described receiver module and switch module:
Image is stored in temporary buffer as Waiting Graph picture, the image being stored in the earliest in temporary buffer by receiver module Output.
Use above-mentioned further scheme to provide the benefit that, by the addition of temporary buffer, can delay first, second The image that storage has little time to process is stored temporarily in temporary buffer, it is to avoid asking of the frame losing occurred because of having little time to process Topic.
Further, all images stored are ranked up, according to advanced person by described temporary buffer according to the access time First go out principle output image.
Use above-mentioned further scheme to provide the benefit that, ensure that picture frame by time-sequencing and first in first out Because inserting temporary buffer, entanglement will not occur, enter temporary buffer and output temporary buffer ensures same order.
Further, the memory space of described temporary buffer is set as at least two frames.
Using above-mentioned further scheme to provide the benefit that, temporary buffer only plays the left and right of temporal cache, it is not necessary to Excessive memory space, it is possible to store the image that a few frame has little time to process, in the case of ensureing not frame losing, by reducing Memory space is that system takies less memory headroom, speed up processing.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of dynamic image caching described in the embodiment of the present invention 1;
Fig. 2 is the system structure schematic diagram of a kind of dynamic image caching described in the embodiment of the present invention 1.
In accompanying drawing, the list of parts representated by each label is as follows:
1, receiver module, 2, switch module, 3, buffer, 4, temporary buffer, the 31, first buffer, the 32, second caching Device.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining the present invention, and Non-for limiting the scope of the present invention.
As it is shown in figure 1, the method for a kind of dynamic image caching described in the embodiment of the present invention 1, comprise the following steps:
Step 1: receive the image of collecting device collection as present image;
Step 2: judge whether switch module is connected with the first buffer, if it is, using the first buffer as currently Buffer, the second buffer, as free buffer device, performs step 3;Otherwise, using the second buffer as current buffer, the One buffer, as free buffer device, performs step 3;
Step 3: after being transferred in current buffer by present image, disconnects the connection of switch module and current buffer, Switch module is connected with free buffer device;
Step 4: present image is transferred to external equipment by current buffer;
Step 5: judge that collecting device the most also sends image, if it is, perform step 1;Otherwise, terminate.
In described step 3, after current buffer receives present image, the information that sends is to switch module;Control switch module Disconnect the connection with current buffer, set up the connection with free buffer device.
Step 12 is also included between described step 1 and step 2:
Present image is stored in temporary buffer as Waiting Graph picture, using the image that is stored in the earliest in temporary buffer as Present image exports, and performs step 2.
The all images stored are ranked up, according to first in first out by described temporary buffer according to the access time Output image.
The memory space of described temporary buffer is set as at least two frames.
As in figure 2 it is shown, the system cached for a kind of dynamic image described in the embodiment of the present invention 2, including:
Receiver module 1, receives the image that collecting device gathers;
Switch module 2, is connected with in two buffers, and by this connection, receiver module is sent to correspondence In buffer;
Two buffers 3, are alternately received the image transmitted by switch module, and the image received are sent to outside In equipment.
Said two buffer 3 includes the first buffer 31 and the second buffer 32, when switch module and the first buffer 31 are connected, and the first buffer 31 receives image;When switch module and the second buffer 32 are connected, and the second buffer 32 receives Image.
After described first buffer 31 receives image, the information that sends is to switch module;Control switch module to disconnect and first The connection of buffer 31, sets up the connection with the second buffer 32;
After described second buffer 32 receives image, the information that sends is to switch module;Control switch module to disconnect and second The connection of buffer 32, sets up the connection with the first buffer 31.
Temporary buffer 4 is also included between described receiver module 1 and switch module 2:
Image is stored in temporary buffer as Waiting Graph picture, the figure being stored in the earliest in temporary buffer 4 by receiver module 1 As output.
The all images stored are ranked up by described temporary buffer 4 according to the access time, former according to first in first out Then export image.
The memory space of described temporary buffer 4 is set as at least two frames.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. the method for a dynamic image caching, it is characterised in that comprise the following steps:
Step 1: receive the image of collecting device collection as present image;
Step 2: judge whether switch module is connected with the first buffer, if it is, using the first buffer as current cache Device, the second buffer, as free buffer device, performs step 3;Otherwise, using the second buffer as current buffer, first delays Storage, as free buffer device, performs step 3;
Step 3: after being transferred in current buffer by present image, disconnects the connection of switch module and current buffer, will open Close module to be connected with free buffer device;
Step 4: present image is transferred to external equipment by current buffer;
Step 5: judge that collecting device the most also sends image, if it is, perform step 1;Otherwise, terminate.
The method of a kind of dynamic image the most according to claim 1 caching, it is characterised in that in described step 3, currently delay After storage receives present image, the information that sends is to switch module;Control switch module and disconnect the connection with current buffer, set up Connection with free buffer device.
The method of a kind of dynamic image the most according to claim 1 and 2 caching, it is characterised in that described step 1 and step Step 12 is also included between 2:
Present image is stored in temporary buffer as Waiting Graph picture, using the image that is stored in the earliest in temporary buffer as currently Image exports, and performs step 2.
The method of a kind of dynamic image the most according to claim 3 caching, it is characterised in that described temporary buffer is to institute All images of storage were ranked up according to the access time, exported image according to first in first out.
The method of a kind of dynamic image the most according to claim 4 caching, it is characterised in that depositing of described temporary buffer Storage space is set as at least two frames.
6. the system of a dynamic image caching, it is characterised in that including:
Receiver module, receives the image that collecting device gathers;
Switch module, is connected with in two buffers, and by this connection, receiver module is sent to corresponding caching In device;
Two buffers, are alternately received the image transmitted by switch module, and the image received are sent to external equipment In.
The system of a kind of dynamic image the most according to claim 6 caching, it is characterised in that said two buffer includes First buffer and the second buffer, when switch module and the first buffer are connected, the first buffer receives image;Work as switch Module is connected with the second buffer, and the second buffer receives image.
The system of a kind of dynamic image the most according to claim 7 caching, it is characterised in that described first buffer receives After image, the information that sends is to switch module;Control switch module and disconnect the connection with the first buffer, set up and the second buffer Connection;
After described second buffer receives image, the information that sends is to switch module;Control switch module to disconnect and the second buffer Connection, set up and the connection of the first buffer.
9. the system cached according to a kind of dynamic image described in any one of claim 6-8, it is characterised in that described reception mould Temporary buffer is also included between block and switch module:
Image is stored in temporary buffer as Waiting Graph picture by receiver module, by defeated for the image being stored in the earliest in temporary buffer Go out.
The system of a kind of dynamic image the most according to claim 9 caching, it is characterised in that described temporary buffer pair The all images stored were ranked up according to the access time, exported image according to first in first out.
CN201610639789.4A 2016-08-05 2016-08-05 A kind of method and system of dynamic image caching Pending CN106204414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610639789.4A CN106204414A (en) 2016-08-05 2016-08-05 A kind of method and system of dynamic image caching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610639789.4A CN106204414A (en) 2016-08-05 2016-08-05 A kind of method and system of dynamic image caching

Publications (1)

Publication Number Publication Date
CN106204414A true CN106204414A (en) 2016-12-07

Family

ID=57513992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610639789.4A Pending CN106204414A (en) 2016-08-05 2016-08-05 A kind of method and system of dynamic image caching

Country Status (1)

Country Link
CN (1) CN106204414A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117115049A (en) * 2023-10-17 2023-11-24 深圳市城市交通规划设计研究中心股份有限公司 Noise reduction method for road interior image of ground penetrating radar, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750858A (en) * 2015-04-16 2015-07-01 成都影泰科技有限公司 Network-based data storage method
CN105229696A (en) * 2013-04-15 2016-01-06 微软技术许可有限责任公司 For the parallel storage of multidimensional data access
CN105654419A (en) * 2016-01-25 2016-06-08 上海华力创通半导体有限公司 Operation processing system and operation processing method of image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105229696A (en) * 2013-04-15 2016-01-06 微软技术许可有限责任公司 For the parallel storage of multidimensional data access
CN104750858A (en) * 2015-04-16 2015-07-01 成都影泰科技有限公司 Network-based data storage method
CN105654419A (en) * 2016-01-25 2016-06-08 上海华力创通半导体有限公司 Operation processing system and operation processing method of image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117115049A (en) * 2023-10-17 2023-11-24 深圳市城市交通规划设计研究中心股份有限公司 Noise reduction method for road interior image of ground penetrating radar, electronic equipment and storage medium
CN117115049B (en) * 2023-10-17 2024-03-29 深圳市城市交通规划设计研究中心股份有限公司 Noise reduction method for road interior image of ground penetrating radar, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021078157A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN105825176B (en) Recognition methods based on multi-modal non-contact identity characteristic
WO2020168468A1 (en) Help-seeking method and device based on expression recognition, electronic apparatus and storage medium
CN100481112C (en) Human face recognition system and recognition method
CN105427421A (en) Entrance guard control method based on face recognition
US11256902B2 (en) People-credentials comparison authentication method, system and camera
WO2021077796A1 (en) Image processing in vehicle cabin
WO2016112630A1 (en) Image recognition system and method
CN204156985U (en) There is high-definition camera equipment and the supervisory control system of face recognition comparison function
CN103106393A (en) Embedded type face recognition intelligent identity authentication system based on robot platform
CN105975938A (en) Smart community manager service system with dynamic face identification function
CN103049459A (en) Feature recognition based quick video retrieval method
CN101751562B (en) Bank transaction image forensic acquiring method based on face recognition
CN107169458A (en) Data processing method, device and storage medium
WO2021135138A1 (en) Target motion trajectory construction method and device, and computer storage medium
CN109190509A (en) A kind of personal identification method, device and computer readable storage medium
CN102811222A (en) Identity identification security method based on cloud computing
CN202815870U (en) Certificate photograph and face automatic identification system
Huang et al. Attendance system based on dynamic face recognition
CN109002776B (en) Face recognition method, system, computer device and computer-readable storage medium
CN106204414A (en) A kind of method and system of dynamic image caching
WO2023093241A1 (en) Pedestrian re-identification method and apparatus, and storage medium
US20190340416A1 (en) Artificial neural network
CN110245648A (en) The alert system of wisdom list based on Identification of Images
CN114299569A (en) Safe face authentication method based on eyeball motion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161207