CN107180407A - A kind of image processing method and device - Google Patents
A kind of image processing method and device Download PDFInfo
- Publication number
- CN107180407A CN107180407A CN201610134092.1A CN201610134092A CN107180407A CN 107180407 A CN107180407 A CN 107180407A CN 201610134092 A CN201610134092 A CN 201610134092A CN 107180407 A CN107180407 A CN 107180407A
- Authority
- CN
- China
- Prior art keywords
- picture
- target photo
- interest
- condition
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000003860 storage Methods 0.000 claims abstract description 98
- 238000007906 compression Methods 0.000 claims abstract description 88
- 230000006835 compression Effects 0.000 claims abstract description 88
- 238000012544 monitoring process Methods 0.000 claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 44
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000012217 deletion Methods 0.000 claims description 17
- 230000037430 deletion Effects 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 claims description 11
- 235000013399 edible fruits Nutrition 0.000 claims description 4
- 238000007689 inspection Methods 0.000 claims description 3
- 238000001914 filtration Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4092—Image resolution transcoding, e.g. by using client-server architectures
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the present application discloses a kind of image processing method and device, is related to safety monitoring technical field, wherein, the above method includes:Monitor whether to meet the picture compression condition for Target Photo, wherein, the Target Photo is:The picture stored in picture storage device;If it is, obtaining the region of interest ROI of the Target Photo;The regions of non-interest of the Target Photo is determined according to the area-of-interest, the disposal of gentle filter is carried out to the regions of non-interest;Processing is compressed to the Target Photo after the disposal of gentle filter.The scheme provided using the embodiment of the present application handles picture, and the memory space of storage device is saved in the case where retaining picture Global Information.
Description
Technical field
The application is related to safety monitoring technical field, more particularly to a kind of image processing method and device.
Background technology
In cloud storage, it is based especially in the cloud storage of safety monitoring, inevitably stores mass picture,
Again due to the data volume of picture is larger and cloud storage in storage device storage capacity it is limited, so over time
The inevitable situation that memory space inadequate in storage device occurs of passage.
In addition, when there are abnormal conditions, the picture stored in the cloud storage equipment based on safety monitoring may
The problems such as the later stage being related to and collect evidence, so the time of these pictures storage, the longer the better.In view of picture
The factor such as storage time and storage device limited storage space, in the prior art, picture collection equipment is being entered
The picture gathered can typically be analyzed during row picture collection, obtain the profile of destination object in picture,
The information such as region, when the situation of memory space inadequate occurs in storage device, according to above-mentioned picture collection equipment
The information such as profile, the region of destination object that analysis is obtained carry out picture cutting, only retain target pair in picture
As region, and then save memory space.
It can be seen that, memory space can be saved using aforesaid way, however, understanding a pictures under normal circumstances
Concrete meaning when, typically need to combine picture Global Information carry out, due in aforesaid way only retain
The partial information of picture, so being unfavorable for picture parsing.
The content of the invention
The embodiment of the present application discloses a kind of image processing method and device, to retain picture Global Information
In the case of save storage device memory space.
To reach above-mentioned purpose, the embodiment of the present application discloses a kind of image processing method, deposited applied to picture
Equipment is stored up, methods described includes:
Monitor whether to meet the picture compression condition for Target Photo, wherein, the Target Photo is:Institute
State the picture stored in picture storage device;
If it is, obtaining the region of interest ROI of the Target Photo;
The regions of non-interest of the Target Photo is determined according to the area-of-interest, and it is emerging to the non-sense
Interesting region carries out the disposal of gentle filter;
Processing is compressed to the Target Photo after the disposal of gentle filter.
It is described to monitor whether to meet the picture for Target Photo in a kind of specific implementation of the application
Contractive condition, including:
Monitor whether that the picture compression for Target Photo for receiving management equipment transmission is instructed, wherein, institute
Stating picture compression instruction is:The management equipment monitors that the picture storage device can use without sufficient
Memory space and the Target Photo are to send in the case of the picture without default compression processing;
If it has, then judging to monitor to meet the picture compression condition for the Target Photo.
It is described to monitor whether to meet the picture for Target Photo in a kind of specific implementation of the application
Contractive condition, including:
Whether the free memory for monitoring the picture storage device is less than default capacity-threshold;
Whether if being less than, it is the picture handled by default compression to judge Target Photo;
If it has not, then judging to monitor to meet the picture compression condition for the Target Photo.
In a kind of specific implementation of the application, the area-of-interest for obtaining the Target Photo,
Including:
According to default regional extent, the area-of-interest of the Target Photo is obtained;Or
According to default recognizer, the area-of-interest of the Target Photo is obtained;Or
The area-of-interest of the Target Photo obtained according to picture collection equipment using default recognizer
Information, obtains the area-of-interest of the Target Photo.
In a kind of specific implementation of the application, the Target Photo, including:
The picture that the pictorial information carried in the picture compression instruction sent according to management equipment is determined;Or
The picture stored in the storage device determined according at least one of following information:
The order of storage time from long to short;
The order of photo resolution from high to low;
The order of the corresponding picture collection equipment importance rate of picture from low to high.
In a kind of specific implementation of the application, the image processing method also includes:
Monitor whether to meet the picture deletion condition for the Target Photo;
If it is, deleting the Target Photo.
It is described to monitor whether to meet for the Target Photo in a kind of specific implementation of the application
Picture deletes condition, including:
Monitor whether that the picture for the Target Photo for receiving management equipment transmission is deleted to instruct, wherein,
The picture deletes instruction:The management equipment monitors that the picture storage device can without sufficient
Sent in the case of picture with memory space and the Target Photo to compress processing by presetting;
If it has, then judging to monitor to meet the picture deletion condition for the Target Photo.
To reach above-mentioned purpose, the embodiment of the present application discloses a kind of picture processing device, deposited applied to picture
Equipment is stored up, described device includes:
Picture compression condition monitor module, for monitoring whether to meet the picture compression condition for Target Photo,
Wherein, the Target Photo is:The picture stored in the picture storage device;
Area-of-interest obtains module, is yes for the monitoring result in the picture compression condition monitor module
In the case of, obtain the area-of-interest of the Target Photo;
The disposal of gentle filter module, for determining that the non-sense of the Target Photo is emerging according to the area-of-interest
Interesting region, and the disposal of gentle filter is carried out to the regions of non-interest;
Compressing processing module, for being compressed place to the Target Photo after the disposal of gentle filter
Reason.
In a kind of specific implementation of the application, the picture compression condition monitor module, including:
Picture compression command monitoring submodule, target is directed to for monitor whether to receive management equipment transmission
The picture compression instruction of picture, wherein, the picture compression instruction is:The management equipment monitors described
Picture storage device without sufficient free memory and the Target Photo be without default compression at
Sent in the case of the picture of reason;
First picture compression condition criterion submodule, for the inspection in the picture compression command monitoring submodule
Result is surveyed in the case of being, then to judge to monitor to meet the picture compression condition for the Target Photo.
In a kind of specific implementation of the application, the picture compression condition monitor module, including:
Memory space monitors submodule, and whether the free memory for monitoring the picture storage device is small
In default capacity-threshold;
Picture judging submodule, for monitoring the situation that the monitoring result of submodule is yes in the memory space
Under, whether judge Target Photo is the picture handled by default compression;
Second picture contractive condition judging submodule, for being in the judged result of the picture judging submodule
In the case of no, judge to monitor to meet the picture compression condition for the Target Photo.
In a kind of specific implementation of the application, the area-of-interest obtains module,
Specifically for according to default regional extent, obtaining the area-of-interest of the Target Photo;Or
Specifically for according to default recognizer, obtaining the area-of-interest of the Target Photo;Or
Specifically for the sense of the Target Photo obtained according to picture collection equipment using default recognizer
Interest area information, obtains the area-of-interest of the Target Photo.
In a kind of specific implementation of the application, the Target Photo, including:
The picture that the pictorial information carried in the picture compression instruction sent according to management equipment is determined;Or
The picture stored in the storage device determined according at least one of following information:
The order of storage time from long to short;
The order of photo resolution from high to low;
The order of the corresponding picture collection equipment importance rate of picture from low to high.
In a kind of specific implementation of the application, the picture processing device also includes:
Picture deletes condition monitor module, for monitoring whether to meet the picture deletion for the Target Photo
Condition;
Picture deletion module, for deleting the situation that the monitoring result of condition monitor module is yes in the picture
Under, delete the Target Photo.
In a kind of specific implementation of the application, the picture deletes condition monitor module, including:
Picture deletes command monitoring submodule, for monitor whether to receive management equipment transmission for described
The picture of Target Photo deletes instruction, wherein, the picture deletes instruction and is:The management equipment is monitored
The picture storage device is without sufficient free memory and the Target Photo is by default pressure
Sent in the case of the picture of contracting processing;
Picture deletes condition criterion submodule, the monitoring knot for deleting command monitoring submodule in the picture
Fruit is in the case of being, then judgement monitors that meeting the picture for being directed to the Target Photo deletes condition.
As seen from the above, in the scheme that the embodiment of the present application is provided, picture storage device monitors that satisfaction is directed to
After the picture compression condition of Target Photo, the area-of-interest of Target Photo is obtained, and according to above-mentioned interested
Region determines the regions of non-interest of Target Photo, and the disposal of gentle filter is carried out to above-mentioned regions of non-interest,
Processing is compressed to the Target Photo after smoothed filtering process.Regions of non-interest to Target Photo is entered
After row the disposal of gentle filter, the detailed information of regions of non-interest can be filtered out, so as to be conducive to improving mesh
Mark on a map the compression ratio of piece, and then save memory space, in addition, though having been carried out smoothly to regions of non-interest
Filtering process, but what the Global Information of regions of non-interest was still present, so, implement using the application
The mode that example is provided carries out picture processing, can save storage device in the case where retaining picture Global Information
Memory space.
Brief description of the drawings
, below will be to implementing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
The accompanying drawing used required in example or description of the prior art is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present application, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet for image processing method that Fig. 1 provides for the embodiment of the present application;
A kind of structural representation for picture storage system that Fig. 2 provides for the embodiment of the present application;
The schematic flow sheet for another image processing method that Fig. 3 provides for the embodiment of the present application;
A kind of structural representation for picture processing device that Fig. 4 provides for the embodiment of the present application;
The structural representation for another picture processing device that Fig. 5 provides for the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear
Chu, it is fully described by, it is clear that described embodiment is only some embodiments of the present application, rather than
Whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that is obtained, belong to the scope of the application protection.
A kind of schematic flow sheet for image processing method that Fig. 1 provides for the embodiment of the present application, this method is applied to
Picture storage device.
Above-mentioned picture storage device can be the storage device in picture storage system, specifically, referring to Fig. 2,
There is provided a kind of structural representation of picture storage system, the picture storage system is including management equipment and at least
One picture storage device.
Wherein, the picture memory space of itself can be acquired periodically in picture storage device, wherein, it is acquired periodically
Picture memory space can include:Available pictures memory space and total picture memory space etc., and to
Management equipment reports picture memory space, and the picture memory space that management equipment is received according to it is judged,
Judge whether the free memory in picture storage device is sufficient, and according to judged result generation processing strategy,
Above-mentioned processing strategy is sent to picture storage device, to cause picture storage device to discharge memory space.Specifically
, above-mentioned processing strategy can be that the picture stored is compressed to discharge memory space, delete and deposited
The picture of storage is to discharge memory space etc..Picture storage device is received after above-mentioned processing strategy, monitoring
Compression, deletion for picture etc. are operated, and discharge memory space.
In addition, above-mentioned management equipment can also have other functions, for example, gathered for image capture device
Picture distribution picture storage device to be stored etc., above-mentioned picture storage device can also receive IMAQ and set
The picture to be stored that preparation is sent, and stored.
Those skilled in the art are it is understood that judge whether memory space fills in picture storage device
Foot, judge whether to need to be compressed the picture stored in picture storage device with discharge memory space,
Judge whether to need to delete the picture stored in picture storage device to discharge the operation such as memory space, also may be used
Not performed by management equipment, but performed by picture storage device oneself.
The application is simply illustrated exemplified by above-mentioned, is not that the application is defined.
Specifically, above-mentioned image processing method includes:
S101:Monitor whether to meet the picture compression condition for Target Photo, if it is, performing S102.
Above-mentioned Target Photo is:The picture stored in picture storage device.
By foregoing description it is known that whether need to be compressed Target Photo can be true by management equipment
Fixed, based on this, in a kind of optional implementation of the application, monitor whether to meet for Target Photo
Picture compression condition when, can management equipment sends for Target Photo by monitoring whether to receive
Picture compression instruction judges, if specifically, receive the picture compression instruction for Target Photo, can be with
Judge to monitor to meet the picture compression condition for Target Photo.
Wherein, above-mentioned picture compression, which is instructed, is:Management equipment monitors picture storage device without abundance
Free memory and Target Photo are to send in the case of the picture without default compression processing.
Specifically, because picture storage device to management equipment can report storage according to certain time interval
Spatial information, so, when whether management equipment detection picture storage device has sufficient free memory,
Can be by way of judging whether free memory that picture storage device reports is less than pre-set space threshold value
Judged, when judging to learn that free memory is less than pre-set space threshold value, it is believed that picture is stored
Equipment is without sufficient free memory.
In addition, Target Photo information can be carried in above-mentioned picture compression instruction, to cause picture storage device
Clearly require and which picture to be compressed processing to.For example, above-mentioned Target Photo information can be:Picture is deposited
The termination time is stored up, that is, picture of the picture storage time before the above-mentioned termination time is Target Photo etc.
Deng certain above-mentioned Target Photo information can also be other information, wouldn't enumerate here.
Based on above-mentioned situation, above-mentioned Target Photo can be during the picture compression sent according to management equipment is instructed
The picture that the pictorial information of carrying is determined.
It can also be learnt by foregoing description, if it can be stored by picture to need to be compressed Target Photo
What equipment itself was determined, in consideration of it, in a kind of optional time mode of the application, picture storage device prison
When whether survey meets the picture compression condition for Target Photo, picture storage device can monitor its own
Free memory whether be less than default capacity-threshold, if being less than, judge Target Photo whether be by
The picture of default compression processing, if it has not, then judging to monitor to meet the picture compression bar for Target Photo
Part.
It should be understood that either still being judged whether to need to target by picture storage device by management equipment
Picture is compressed, and is required to first determine Target Photo before judgement.Specifically, determining Target Photo
When, determine in the picture that can have been stored according at least one of in the following manner from storage device:
The first, the order of storage time from long to short, storage time is short, and explanation is the picture newly stored,
The probability that such picture is used is high, and most of picture compression algorithms can be brought in image in the prior art
Hold loss, in order to reduce the influence applied to the later stage, so the preferential picture to storage time length is compressed,
To discharge memory space;
Second, the order of photo resolution from high to low, photo resolution is higher, and the data volume of picture is got over
Greatly, relatively large number of memory space can be discharged by the picture of high resolution being compressed;
The third, the order of the corresponding picture collection equipment importance rate of picture from low to high, practical application
In, the importance of some scenes is of a relatively high, therefore, can be according to figure when setting picture collection equipment
Scene residing for piece collecting device sets importance rate for it, and accordingly, the high picture of importance rate is adopted
The picture importance rate that collection equipment is gathered is also high, so, it is determined that during the picture to be compressed, can be preferential
The low picture of picture collection equipment importance rate is determined, to retain important letter while memory space is discharged
Breath.
Certainly, Target Photo can also be determined according to other information in practical application, the application enters not to this
Row is limited.In addition, through determine obtained above-mentioned Target Photo can be one or multiple.
S102:Obtain the region of interest ROI of Target Photo.
In practical application, the installation site of picture collection equipment is usually fixed constant, and picture is important
Information generally concentrates on the corresponding region in field of view center region of picture collection equipment, so, can be by
The corresponding picture region in field of view center region of picture collection equipment as Target Photo ROI (Region Of
Interest, area-of-interest),, can be according to pre- in a kind of optional implementation of the application based on this
If regional extent, obtain Target Photo area-of-interest.
In addition, with the fast development of image recognition technology, for ROI identification technology also continuous ripe,
ROI recognizer can also be directed to by some, the area-of-interest of Target Photo is obtained.
Specifically, picture storage device can obtain the interested of Target Photo according to default recognizer
Region.
The area-of-interest letter for the Target Photo that picture collection equipment can also be obtained using default recognizer
Breath, then sends that information to picture storage device, region of interest of the picture storage device further according to reception
Domain information obtains the area-of-interest of Target Photo.Hardware performance requirements of this mode to picture collection equipment
It is of a relatively high.
It should be noted that above-mentioned default recognizer is the recognizer for ROI.
S103:The regions of non-interest of Target Photo is determined according to above-mentioned area-of-interest, and to above-mentioned non-sense
Interest region carries out the disposal of gentle filter.
It should be understood that the detailed information of picture is abundanter, the memory space taken after compression is bigger, conversely
The detailed information of picture is fewer, and the memory space taken after compression is smaller.And in terms of Fourier's frequency domain angle,
These detailed information are often distributed in the HFS of frequency domain, it is therefore possible to use low-frequency filter is filtered
Ripple, gets rid of HFS, and retains low frequency part.Image has been carried out smoothly from the point of view of visual angle
Filtering process.
Because the ROI region of picture typically include the important information of picture, rather than ROI region majority of case
Under be mainly used in the information of auxiliary parsing ROI region, importance is relatively low, therefore, is to ensure to reduce to rear
The influence of phase application, when carrying out the disposal of gentle filter, only can be handled non-ROI region.
S104:Processing is compressed to the Target Photo after smoothed filtering process.
It should be understood that the resolution ratio of picture is higher, the memory space that it takes is bigger, on the contrary, picture point
Resolution is lower, and the memory space that it takes is smaller.In order to further save memory space, to smoothed place
, can also be according to default proportionate relationship, by above-mentioned target figure when Target Photo after reason is compressed processing
Piece is transformed to the less picture of resolution ratio, is then compressed processing to the picture after conversion.
Certainly, when being compressed processing to the Target Photo after smoothed processing, target can also not changed
Carried out on the premise of photo resolution.
As seen from the above, in the scheme that the present embodiment is provided, picture storage device, which monitors to meet, is directed to target
After the picture compression condition of picture, the area-of-interest of Target Photo is obtained, and according to above-mentioned area-of-interest
The regions of non-interest of Target Photo is determined, the disposal of gentle filter is carried out to above-mentioned regions of non-interest, to warp
Target Photo after the disposal of gentle filter is compressed processing.Regions of non-interest to Target Photo is put down
After sliding filtering process, the detailed information of regions of non-interest can be filtered out, so as to be conducive to improving target figure
The compression ratio of piece, and then memory space is saved, in addition, though having carried out smothing filtering to regions of non-interest
Processing, but what the Global Information of regions of non-interest was still present, so, provided using the present embodiment
Mode carries out picture processing, and the storage that storage device can be saved in the case where retaining picture Global Information is empty
Between.
In a kind of specific implementation of the application, referring to Fig. 3, there is provided another image processing method
Schematic flow sheet, compared with previous embodiment, in the present embodiment, above-mentioned image processing method also includes:
S105:Monitor whether to meet the picture deletion condition for Target Photo, if it is, performing S106.
It should be noted that this step can monitor to be unsatisfactory for the picture compression for Target Photo in S101
Carry out, can also simultaneously be carried out with S101, the execution sequence of the application not to the step in the case of condition
It is defined.
In a kind of optional implementation of the application, monitor whether to meet the picture deletion for Target Photo
During condition, it can be referred to by monitoring whether that the picture for Target Photo for receiving management equipment transmission is deleted
Order is performed, if receiving above-mentioned picture deletes instruction, judges to monitor to meet the picture for Target Photo
Picture deletion action can be understood as what is triggered by management equipment in deletion condition, this mode.
Wherein, picture delete instruction be:Management equipment monitors that picture storage device can use without sufficient
Sent in the case of the picture of memory space and Target Photo to compress processing by presetting.
In another optional implementation of the application, monitor whether that meeting the picture for being directed to Target Photo deletes
During except condition, picture storage device can monitor whether the free memory of its own is less than default space
Threshold value, whether if being less than, it is the picture handled by default compression to judge Target Photo, if it has, then
Judge to monitor to meet the picture deletion condition for Target Photo.
S106:Delete target picture.
As seen from the above, in the present embodiment, when monitoring to meet the picture deletion condition for Target Photo,
Delete target picture, so can further discharge memory space, freshly harvested to store picture collection equipment
Picture.
Corresponding with above-mentioned image processing method, the embodiment of the present application additionally provides a kind of picture processing device.
A kind of structural representation for picture processing device that Fig. 4 provides for the embodiment of the present application, the device is applied to
Picture storage device, including:
Picture compression condition monitor module 401, for monitoring whether to meet the picture compression bar for Target Photo
Part, wherein, the Target Photo is;The picture stored in the picture storage device;
Area-of-interest obtains module 402, for the monitoring knot in the picture compression condition monitor module 401
Fruit is in the case of being, to obtain the region of interest ROI of the Target Photo;
The disposal of gentle filter module 403, the non-interested of the Target Photo is determined according to the area-of-interest
Region, and the disposal of gentle filter is carried out to the regions of non-interest;
Compressing processing module 404, for being compressed to the Target Photo after the disposal of gentle filter
Processing.
Specifically, the picture compression condition monitor module 401 can include:
Picture compression command monitoring submodule, target is directed to for monitor whether to receive management equipment transmission
The picture compression instruction of picture, wherein, the picture compression instruction is:The management equipment monitors described
Picture storage device without sufficient free memory and the Target Photo be without default compression at
Sent in the case of the picture of reason;
First picture compression condition criterion submodule, for the inspection in the picture compression command monitoring submodule
Result is surveyed in the case of being, then to judge to monitor to meet the picture compression condition for the Target Photo.
Specifically, the picture compression condition monitor module 401 can include:
Memory space monitors submodule, and whether the free memory for monitoring the picture storage device is small
In default capacity-threshold;
Picture judging submodule, for monitoring the situation that the monitoring result of submodule is yes in the memory space
Under, whether judge Target Photo is the picture handled by default compression;
Second picture contractive condition judging submodule, for being in the judged result of the picture judging submodule
In the case of no, judge to monitor to meet the picture compression condition for the Target Photo.
Specifically, the area-of-interest obtains module 402,
Specifically for according to default regional extent, obtaining the area-of-interest of the Target Photo;Or
Specifically for according to default recognizer, obtaining the area-of-interest of the Target Photo;Or
Specifically for the sense of the Target Photo obtained according to picture collection equipment using default recognizer
Interest area information, obtains the area-of-interest of the Target Photo.
Specifically, the Target Photo can include:
The picture that the pictorial information carried in the picture compression instruction sent according to management equipment is determined;Or
The picture stored in the storage device determined according at least one of following information:
The order of storage time from long to short;
The order of photo resolution from high to low;
The order of the corresponding picture collection equipment importance rate of picture from low to high.
As seen from the above, in the scheme that the present embodiment is provided, picture storage device, which monitors to meet, is directed to target
After the picture compression condition of picture, the area-of-interest of Target Photo is obtained, and according to above-mentioned area-of-interest
The regions of non-interest of Target Photo is determined, the disposal of gentle filter is carried out to above-mentioned regions of non-interest, to warp
Target Photo after the disposal of gentle filter is compressed processing.Regions of non-interest to Target Photo is put down
After sliding filtering process, the detailed information of regions of non-interest can be filtered out, so as to be conducive to improving target figure
The compression ratio of piece, and then memory space is saved, in addition, though having carried out smothing filtering to regions of non-interest
Processing, but what the Global Information of regions of non-interest was still present, so, provided using the present embodiment
Mode carries out picture processing, and the storage that storage device can be saved in the case where retaining picture Global Information is empty
Between.
In a kind of specific implementation of the application, referring to Fig. 5, there is provided another picture processing device
Structural representation, compared with previous embodiment, in the present embodiment, above-mentioned picture processing device also includes:
Picture deletes condition monitor module 405, for monitoring whether that meeting the picture for being directed to the Target Photo deletes
Except condition;
Picture deletion module 406, the monitoring result for deleting condition monitor module 405 in the picture is yes
In the case of, delete the Target Photo.
It can include specifically, the picture deletes condition monitor module 405:
Picture deletes command monitoring submodule, for monitor whether to receive management equipment transmission for described
The picture of Target Photo deletes instruction, wherein, the picture deletes instruction and is:The management equipment is monitored
The picture storage device is without sufficient free memory and the Target Photo is by default pressure
Sent in the case of the picture of contracting processing;
Picture deletes condition criterion submodule, the monitoring knot for deleting command monitoring submodule in the picture
Fruit is in the case of being, then judgement monitors that meeting the picture for being directed to the Target Photo deletes condition.
As seen from the above, in the present embodiment, when monitoring to meet the picture deletion condition for Target Photo,
Delete target picture, so can further discharge memory space, freshly harvested to store picture collection equipment
Picture.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these
There is any this actual relation or order between entity or operation.Moreover, term " comprising ", "comprising"
Or any other variant thereof is intended to cover non-exclusive inclusion, so that including a series of mistake of key elements
Journey, method, article or equipment not only include those key elements, but also other including being not expressly set out
Key element, or also include for this process, method, article or the intrinsic key element of equipment.Do not having
In the case of more limitations, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, article or the equipment of element.
One of ordinary skill in the art will appreciate that realizing all or part of step in above method embodiment
It can be by program to instruct the hardware of correlation to complete, described program can be stored in computer-readable
Take in storage medium, the storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The preferred embodiment of the application is the foregoing is only, the protection domain of the application is not intended to limit.
All any modification, equivalent substitution and improvements made within spirit herein and principle etc., are all contained in
In the protection domain of the application.
Claims (14)
1. a kind of image processing method, applied to picture storage device, it is characterised in that methods described includes:
Monitor whether to meet the picture compression condition for Target Photo, wherein, the Target Photo is:Institute
State the picture stored in picture storage device;
If it is, obtaining the region of interest ROI of the Target Photo;
The regions of non-interest of the Target Photo is determined according to the area-of-interest, and it is emerging to the non-sense
Interesting region carries out the disposal of gentle filter;
Processing is compressed to the Target Photo after the disposal of gentle filter.
2. according to the method described in claim 1, it is characterised in that described to monitor whether to meet for target
The picture compression condition of picture, including:
Monitor whether that the picture compression for Target Photo for receiving management equipment transmission is instructed, wherein, institute
Stating picture compression instruction is:The management equipment monitors that the picture storage device can use without sufficient
Memory space and the Target Photo are to send in the case of the picture without default compression processing;
If it has, then judging to monitor to meet the picture compression condition for the Target Photo.
3. according to the method described in claim 1, it is characterised in that described to monitor whether to meet for target
The picture compression condition of picture, including:
Whether the free memory for monitoring the picture storage device is less than default capacity-threshold;
Whether if being less than, it is the picture handled by default compression to judge Target Photo;
If it has not, then judging to monitor to meet the picture compression condition for the Target Photo.
4. the method according to any one of claim 1-3, it is characterised in that the acquisition target
The area-of-interest of picture, including:
According to default regional extent, the area-of-interest of the Target Photo is obtained;Or
According to default recognizer, the area-of-interest of the Target Photo is obtained;Or
The area-of-interest of the Target Photo obtained according to picture collection equipment using default recognizer
Information, obtains the area-of-interest of the Target Photo.
5. the method according to any one of claim 1-3, it is characterised in that the Target Photo, bag
Include:
The picture that the pictorial information carried in the picture compression instruction sent according to management equipment is determined;Or
The picture stored in the storage device determined according at least one of following information:
The order of storage time from long to short;
The order of photo resolution from high to low;
The order of the corresponding picture collection equipment importance rate of picture from low to high.
6. according to the method described in claim 1, it is characterised in that methods described also includes:
Monitor whether to meet the picture deletion condition for the Target Photo;
If it is, deleting the Target Photo.
7. method according to claim 6, it is characterised in that described to monitor whether to meet for described
The picture of Target Photo deletes condition, including:
Monitor whether that the picture for the Target Photo for receiving management equipment transmission is deleted to instruct, wherein,
The picture deletes instruction:The management equipment monitors that the picture storage device can without sufficient
Sent in the case of picture with memory space and the Target Photo to compress processing by presetting;
If it has, then judging to monitor to meet the picture deletion condition for the Target Photo.
8. a kind of picture processing device, applied to picture storage device, it is characterised in that described device includes:
Picture compression condition monitor module, for monitoring whether to meet the picture compression condition for Target Photo,
Wherein, the Target Photo is:The picture stored in the picture storage device;
Area-of-interest obtains module, is yes for the monitoring result in the picture compression condition monitor module
In the case of, obtain the region of interest ROI of the Target Photo;
The disposal of gentle filter module, for determining that the non-sense of the Target Photo is emerging according to the area-of-interest
Interesting region, and the disposal of gentle filter is carried out to the regions of non-interest;
Compressing processing module, for being compressed place to the Target Photo after the disposal of gentle filter
Reason.
9. device according to claim 8, it is characterised in that the picture compression condition monitor module,
Including:
Picture compression command monitoring submodule, target is directed to for monitor whether to receive management equipment transmission
The picture compression instruction of picture, wherein, the picture compression instruction is:The management equipment monitors described
Picture storage device without sufficient free memory and the Target Photo be without default compression at
Sent in the case of the picture of reason;
First picture compression condition criterion submodule, for the inspection in the picture compression command monitoring submodule
Result is surveyed in the case of being, then to judge to monitor to meet the picture compression condition for the Target Photo.
10. device according to claim 8, it is characterised in that the picture compression condition monitor module,
Including:
Memory space monitors submodule, and whether the free memory for monitoring the picture storage device is small
In default capacity-threshold;
Picture judging submodule, for monitoring the situation that the monitoring result of submodule is yes in the memory space
Under, whether judge Target Photo is the picture handled by default compression;
Second picture contractive condition judging submodule, for being in the judged result of the picture judging submodule
In the case of no, judge to monitor to meet the picture compression condition for the Target Photo.
11. the device according to any one of claim 8-10, it is characterised in that the area-of-interest
Obtain module,
Specifically for according to default regional extent, obtaining the area-of-interest of the Target Photo;Or
Specifically for according to default recognizer, obtaining the area-of-interest of the Target Photo;Or
Specifically for the sense of the Target Photo obtained according to picture collection equipment using default recognizer
Interest area information, obtains the area-of-interest of the Target Photo.
12. the device according to any one of claim 8-10, it is characterised in that the Target Photo,
Including:
The picture that the pictorial information carried in the picture compression instruction sent according to management equipment is determined;Or
The picture stored in the storage device determined according at least one of following information:
The order of storage time from long to short;
The order of photo resolution from high to low;
The order of the corresponding picture collection equipment importance rate of picture from low to high.
13. device according to claim 8, it is characterised in that described device also includes:
Picture deletes condition monitor module, for monitoring whether to meet the picture deletion for the Target Photo
Condition;
Picture deletion module, for deleting the situation that the monitoring result of condition monitor module is yes in the picture
Under, delete the Target Photo.
14. device according to claim 13, it is characterised in that the picture deletes condition monitoring mould
Block, including:
Picture deletes command monitoring submodule, for monitor whether to receive management equipment transmission for described
The picture of Target Photo deletes instruction, wherein, the picture deletes instruction and is:The management equipment is monitored
The picture storage device is without sufficient free memory and the Target Photo is by default pressure
Sent in the case of the picture of contracting processing;
Picture deletes condition criterion submodule, the monitoring knot for deleting command monitoring submodule in the picture
Fruit is in the case of being, then judgement monitors that meeting the picture for being directed to the Target Photo deletes condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134092.1A CN107180407A (en) | 2016-03-09 | 2016-03-09 | A kind of image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134092.1A CN107180407A (en) | 2016-03-09 | 2016-03-09 | A kind of image processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107180407A true CN107180407A (en) | 2017-09-19 |
Family
ID=59830554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610134092.1A Pending CN107180407A (en) | 2016-03-09 | 2016-03-09 | A kind of image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107180407A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019223428A1 (en) * | 2018-05-25 | 2019-11-28 | 杭州海康威视数字技术股份有限公司 | Lossy compression encoding method and apparatus and system-on-chip |
CN111754565A (en) * | 2019-03-29 | 2020-10-09 | 浙江宇视科技有限公司 | Image processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040156548A1 (en) * | 2002-11-20 | 2004-08-12 | Taku Kodama | Image processing apparatus, image compressing apparatus, image decompressing apparatus, image processing method, image compressing method, image decompressing method, information processing apparatus, information processing method, program and recording medium |
US20060193524A1 (en) * | 2005-02-18 | 2006-08-31 | Tetsu Tarumoto | Image display method, image coding apparatus, and image decoding apparatus |
CN1914915A (en) * | 2004-04-23 | 2007-02-14 | 住友电气工业株式会社 | Moving picture data encoding method, decoding method, terminal device for executing them, and bi-directional interactive system |
CN102348116A (en) * | 2010-08-03 | 2012-02-08 | 株式会社理光 | Video processing method, video processing device and video processing system |
CN103595966A (en) * | 2013-11-19 | 2014-02-19 | 浙江宇视科技有限公司 | Method and system for compressing monitoring photograph |
CN104427291A (en) * | 2013-08-19 | 2015-03-18 | 华为技术有限公司 | Image processing method and device |
-
2016
- 2016-03-09 CN CN201610134092.1A patent/CN107180407A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040156548A1 (en) * | 2002-11-20 | 2004-08-12 | Taku Kodama | Image processing apparatus, image compressing apparatus, image decompressing apparatus, image processing method, image compressing method, image decompressing method, information processing apparatus, information processing method, program and recording medium |
CN1914915A (en) * | 2004-04-23 | 2007-02-14 | 住友电气工业株式会社 | Moving picture data encoding method, decoding method, terminal device for executing them, and bi-directional interactive system |
US20060193524A1 (en) * | 2005-02-18 | 2006-08-31 | Tetsu Tarumoto | Image display method, image coding apparatus, and image decoding apparatus |
CN102348116A (en) * | 2010-08-03 | 2012-02-08 | 株式会社理光 | Video processing method, video processing device and video processing system |
CN104427291A (en) * | 2013-08-19 | 2015-03-18 | 华为技术有限公司 | Image processing method and device |
CN103595966A (en) * | 2013-11-19 | 2014-02-19 | 浙江宇视科技有限公司 | Method and system for compressing monitoring photograph |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019223428A1 (en) * | 2018-05-25 | 2019-11-28 | 杭州海康威视数字技术股份有限公司 | Lossy compression encoding method and apparatus and system-on-chip |
CN110536138A (en) * | 2018-05-25 | 2019-12-03 | 杭州海康威视数字技术股份有限公司 | A kind of lossy compression coding method, device and system grade chip |
CN110536138B (en) * | 2018-05-25 | 2021-11-09 | 杭州海康威视数字技术股份有限公司 | Lossy compression coding method and device and system-on-chip |
CN111754565A (en) * | 2019-03-29 | 2020-10-09 | 浙江宇视科技有限公司 | Image processing method and device |
CN111754565B (en) * | 2019-03-29 | 2024-04-26 | 浙江宇视科技有限公司 | Image processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103685150B (en) | The method and apparatus of upload file | |
CN105869175A (en) | Image segmentation method and system | |
KR101884611B1 (en) | Method of extracting objects-of-Interest out of CCTV video using metadate filtering of moving objects | |
CN105100748A (en) | Video monitoring system and video monitoring method | |
CN105208528A (en) | Peer recognition system and method | |
CN107180407A (en) | A kind of image processing method and device | |
CN105788272A (en) | Alarming method and system for road flow congestion | |
CN115249331B (en) | Mine ecological safety identification method based on convolutional neural network model | |
CN113992893A (en) | Park inspection method and device, storage medium and electronic device | |
CN101776747A (en) | Adaptive resampling-based radar signal compression method | |
CN102801548B (en) | A kind of method of intelligent early-warning, device and information system | |
CN112949439A (en) | Method and system for monitoring invasion of personnel in key area of oil tank truck | |
CN113190700B (en) | Face snapshot, screening and storage method and system for real estate transaction | |
CN112883213B (en) | Picture archiving method and device and electronic equipment | |
CN113177029A (en) | Dynamic generation method, system, equipment and storage medium of power grid wave recording file | |
CN114863364B (en) | Security detection method and system based on intelligent video monitoring | |
CN105446985A (en) | Cache folder identification method and device | |
CN113489929A (en) | Method and device for monitoring supervision of garbage classification, computer equipment and storage medium | |
CN112383686B (en) | Video processing method, video processing device, storage medium and electronic device | |
CN113723145A (en) | Video monitoring method for intelligently analyzing and identifying operation process of sterilizer | |
CN215987584U (en) | Vehicle access information statistical device for parking lot | |
CN115830806B (en) | Natural disaster condition analysis system based on high-resolution remote sensing | |
CN113435419B (en) | Illegal garbage discarding behavior detection method, device and application | |
CN110933348A (en) | Digital video recording method and device adopting dynamic compression ratio | |
CN115878719A (en) | Data processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170919 |
|
RJ01 | Rejection of invention patent application after publication |