IMAGE PROCESSING METHOD AND RELATED CAMERA DEVICE AND CAMERA SYSTEM
An image processing method is applied to a camera device and a camera system. The image processing method includes dividing each image frame of a video film into a plurality of unit regions, computing a plurality of data quantity respectively corresponding to the plurality of unit regions, compiling statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and distinguishing the each unit region from the other unit regions in accordance with the total data quantity.
The present invention relates to an image processing method and a related camera device and a related camera device, and more particularly, to an image processing method capable of applying specific compression rates to distinct unit regions within an image frame for optimizing utilization of a transmission bandwidth and a related camera device and a related camera device.
2. Description of the Prior ArtA conventional monitoring apparatus utilizes visual computing appliance to analyze bits of any region inside an image frame to define the foreground and the background of the image frame. For example, the region about a pavement having low bits is defined as the background, and the region about a walking person having high bits is defined as the foreground. The foreground is a region of interest compressed via a low compression rate, which means the compressed foreground region is clear and has large data quantity. The background is the region of not interest and is compressed via a high compression rate, which means the compressed background region is blurred due to small data quantity. The conventional monitoring apparatus is used to keep resolution of the region of interest and economize transmission bandwidth of the image frame. When leaves of the tree is swaying in the wind, the bits of the region about the leaves is increased, so that the conventional visual computing appliance may define the region about the trees as the foreground and compress the said region via the low compression rate; however, a user having the monitoring apparatus is not meant to focus on the trees. The conventional monitoring apparatus is unsuitable for various sceneries and cannot decrease a demand for the transmission bandwidth because the image frame is unable to divide into the regions of interest and not interest precisely.
The conventional visual computing appliance wastes unnecessary computation on the region of not interest (such as the region about the swaying leaves of the trees), and has drawbacks of consuming the transmission bandwidth, storage capacity and computing time. In addition, as the foreground and the background of the image frame are selected by the user, the user has to look at the original and unprocessed image frame in manual selection. Without auxiliary information about the foreground (the region of interest) and the background (the region of not interest), the user cannot quickly and precisely mark the regions of interest and not interest. Design of an image processing method capable of automatically identifying the regions of interest and not interest for applying different compression rates and economizing the transmission bandwidth is an important issue in the related monitoring industry.
SUMMARY OF THE INVENTIONThe present invention provides an image processing method capable of applying specific compression rates to distinct unit regions within an image frame for optimizing utilization of transmission bandwidth and a related camera device and a related camera device for solving above drawbacks.
According to the claimed invention, an image processing method includes dividing each image frame of a video film into a plurality of unit regions, computing a plurality of data quantity respectively corresponding to the plurality of unit regions, compiling statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and distinguishing the each unit region from other unit regions in accordance with the total data quantity.
According to the claimed invention, a camera device includes an image generator and an operational processor. The image generator is configured to capture a video film containing a plurality of image frames. The operational processor is electrically connected to the image generator and configured to analyze the video film, to divide each image frame of the video film into a plurality of unit regions, to compute a plurality of data quantity respectively corresponding to the plurality of unit regions, to compile statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and to distinguish the each unit region from other unit regions in accordance with the total data quantity.
According to the claimed invention, a camera system includes at least one camera device and a central host. The camera device is configured to capture a video film containing a plurality of image frames. The central host is connected to the at least one camera device in a remote manner, and configured to receive the video film containing the plurality of image frames, to divide each image frame of the video film into a plurality of unit regions, to compute a plurality of data quantity respectively corresponding to the plurality of unit regions, to compile statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and to distinguish the each unit region from other unit regions in accordance with the total data quantity.
The image processing method of the present invention can divide each image frame into the plurality of unit regions automatically or manually via an operating interface, and the data quantity of the unit region located at the same place inside the plurality of image frames are added up. When the total data quantity of each unit region is greater than the threshold, the storage capacity and the transmission bandwidth are occupied by the large total data quantity, so that the said unit region can be processed via the high compression rate. When the total data quantity of the unit region is lower than the threshold, the storage capacity and the transmission bandwidth may leave unused due to small total data quantity, and the said unit region can be processed via the low compression rate. That is, the present invention utilizes the bits of each unit region (or any parameters capable of indicating the data quantity) to determine regions applied by different compression rates within the image frame. The image processing method can automatically identify content of the image frame to decide the compression rates about different unit regions, so as to economize the storage capacity and the transmission bandwidth of the camera device or the camera system. Besides, the present invention can show the image frame (whereon some of the unit regions are marked according to the total data quantity) on the displaying screen, and an amount of the bits can be distinguished by lines with different widths or colors, therefore the user can select the region of not interest from some unit regions (the unit region is marked and has the total data quantity greater than the threshold) to process the related image information via the high compression rate. The present invention can keep the region of interest in the high quality, and can provide preferred utilization of the storage capacity and the transmission bandwidth.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
As shown in
Please refer to
First, step 400 is executed to divide each image frame I of the video film V into a plurality of unit regions R11, R21, R12, Rm1, R1n, . . . , Rmn, and an array size of each unit region is not limited. Steps 402 and 404 are executed to acquire a plurality of data quantity respectively corresponding to the plurality of unit regions R11˜Rmn, and compile statistics of a total data quantity of each unit region within the plurality of image frames I. The data quantity of each unit region located at a specific location within the image frames I are added up to determine whether the pattern located at the specific location is complicated, frequently varied or eternally behaved. For example, an inextricable pattern or the frequently varied pattern may have the large data quantity, and a monotonous pattern or the unvaried pattern may have the small data quantity. The foresaid data quantity can be acquired with or without compression of the image information about the unit regions R11˜Rmn, and the data quantity of each unit region can be original data or compressed data.
The total data quantity of each unit region can be aggregation of the plurality of data quantity of the foresaid unit region within the overall image frames I of the video film V. In case of the five-minute video film V shown at 30 fps, the total data quantity is the sum of nine-thousand data quantity, and the aggregation of the data quantity can be the sum, an average or any other computing value about the plurality of data quantity. In addition, the image processing method can utilize the image recognition technique to eliminate the unmatched image frame for decreasing the total data quantity less than the nine-thousand data quantity. Thus, the total data quantity of each unit region can be the aggregation of the data quantity within a part of the image frames I; or the total data quantity can be the sum, the average or the computing value of the plurality of data quantity without some data quantity which conforms to the specific standard.
Then, step 406 is executed to compare the total data quantity of any unit region with a threshold. When the total data quantity is lower than the threshold, the pattern within the unit region does not conform to the highly concentrated or frequently varied condition, and step 408 is executed to process the image information within the unit region via the low compression rate. When the total data quantity is higher than the threshold, the pattern highly concentrated or frequently varied exceeds a predetermined range, and step 410 is executed to increase the compression rate of the image information within the unit region of the video film V when the image recognition technique identifies that a part of or all of the foresaid unit region does not belong to the region of interest. Therefore, the image processing method of the present invention can identify the patterns about the window A1 and the fan A2 within the video film V, and the data quantity of the related unit region is highly compressed accordingly for economy of the bandwidth. The patterns about a table and a passerby are processed by the low compression rate to prevent the compressed image frame from distortion.
The above-mentioned embodiment can find out the unit region which conforms to condition about the high compression rate, and the unit region accorded with the condition and the unit region not accorded with the condition are processed by different compression rates. Besides, the image processing method of the present invention further may provide a manual selecting function for deciding the unit region processed by the high compression rate. Please refer to
Moreover, the image processing method of the present invention can utilize the total data quantity of each unit region to determine the said unit region belongs to a region processed by the high compression rate or the low compression rate. For example, the total data quantity of those unit regions can be ordered, and some of the unit regions with the largest total data quantity can be processed via the high compression rate and the other unit regions can be optionally processed via the low compression rate. Any method capable of allotting the specific compression rate to the corresponding unit region in accordance with a comparison of the total data quantity about those unit regions belongs to a scope of the present invention. The image processing method of the present invention further can divide the image frame into several regions respectively with different compression rates (such as the high compression rate, the middle compression rate and the low compression rate) in accordance with the user' demand.
The unit regions shown on the displaying screen 20 can be presented by different colors or the same color with different concentration. As shown in
It should be mentioned that the video film V can be captured during a specific time period, and the image processing method of the present invention can set a predefined period within the time period in an automatic manner or in a manual manner. When the compression rates of the unit regions are set according to the total data quantity, the unit regions of some image frames I or I′ within the predefined period are picked out of the video film V for compressing the image information. The predefined period can be a specific range within the time period, or a specific circle within the time period. For example, the time period of the video film V captured by the camera device 12 can be twenty-four hours, and the specific range of the third hour, the fourth hour and the fifth hour can be defined as the predefined period, so that the image processing method of the present invention is applied to the image frame I or I′ captured within the specific range. Further, the specific circle from 7:00 am to 9:00 am can be defined as the predefined period, and the image processing method of the present invention is applied to the image frame I or I′ captured during rush hours. The present invention can vary the highly-concerned region due to the predefined period, and the user can acquire an image processing result in accordance with related circumstances at different space of time. For example, the highly-concerned region can be a region about the door at 8:00 am to 9:00 am, and the highly-concerned region can be switched to a region about the table at 9:00 am to 5:00 pm.
The image processing method of the present invention can divide each image frame into the plurality of unit regions automatically or manually via an operating interface, and the data quantity of the unit region located at the same place inside the plurality of image frames are added up. When the total data quantity of each unit region is greater than the threshold, the storage capacity and the transmission bandwidth are occupied by the large total data quantity, so that the said unit region can be processed via the high compression rate. When the total data quantity of the unit region is lower than the threshold, the storage capacity and the transmission bandwidth may leave unused due to small total data quantity, and the said unit region can be processed via the low compression rate.
That is, the present invention utilizes the bits of each unit region (or any parameters capable of indicating the data quantity) to determine regions applied by different compression rates within the image frame. The image processing method can automatically identify content of the image frame to decide the compression rates about different unit regions, so as to economize the storage capacity and the transmission bandwidth of the camera device or the camera system. Besides, the present invention can show the image frame (whereon some of the unit regions are marked according to the total data quantity) on the displaying screen, and an amount of the bits can be distinguished by lines with different widths or colors, therefore the user can select the region of not interest from some unit regions (the unit region is marked and has the total data quantity greater than the threshold) to process the image information via the high compression rate. The present invention can not only keep the region of interest in the high quality, but also provide preferred utilization about the storage capacity and the transmission bandwidth.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Claims
1. An image processing method, comprising:
- dividing each image frame of a video film into a plurality of unit regions;
- computing a plurality of data quantity respectively corresponding to the plurality of unit regions;
- compiling statistics of a total data quantity of each unit region within a plurality of image frames of the video film; and
- distinguishing the each unit region from other unit regions in accordance with the total data quantity.
2. The image processing method of claim 1, wherein computing the plurality of data quantity respectively corresponding to the plurality of unit regions comprises:
- compressing image information about the plurality of unit regions to acquire the plurality of data quantity.
3. The image processing method of claim 1, wherein distinguishing the each unit region from other unit regions in accordance with the total data quantity comprises:
- comparing the total data quantity of the each unit region with a threshold; and
- determining a compression rate of the each unit region according to a comparison result.
4. The image processing method of claim 1, wherein distinguishing the each unit region from other unit regions in accordance with the total data quantity comprises:
- showing the each unit region and other unit regions on a displaying screen in distinct manners due to difference of the total data quantity.
5. The image processing method of claim 4, further comprising:
- adjusting a compression rate of the unit region within a region of interest when the region of interest is selected over the displaying screen via an operating interface.
6. The image processing method of claim 3, wherein when the total data quantity of the unit region is greater than the threshold, the compression rate of image information about the unit region within the video film is increased.
7. The image processing method of claim 1, wherein the total data quantity is a sum of the plurality of data quantity about all the image frames within the video film, or is a sum of the data quantity of a part of the image frames within the video film.
8. The image processing method of claim 7, wherein the sum of the data quantity is an average value or a total value of the plurality of data quantity, or an average value or a total value of the plurality of data quantity excluded at least one data quantity conforming to a specific standard.
9. The image processing method of claim 3, wherein the video film is captured during a time period, the image processing method further comprises:
- setting a predefined period within the time period of the video film; and
- compressing the unit regions of a part of the image frames within the video film during the predefined period via the compression rate.
10. The image processing method of claim 9, wherein the predefined period is a specific range within the time period, or a specific circle within the time period.
11. A camera device, comprising:
- an image generator configured to capture a video film containing a plurality of image frames; and
- an operational processor electrically connected to the image generator and configured to analyze the video film, to divide each image frame of the video film into a plurality of unit regions, to compute a plurality of data quantity respectively corresponding to the plurality of unit regions, to compile statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and to distinguish the each unit region from other unit regions in accordance with the total data quantity.
12. The camera device of claim 11, wherein the operational processor is further configured to compare the total data quantity of the each unit region with a threshold, and determine a compression rate of the each unit region according to a comparison result.
13. The camera device of claim 11, wherein the operational processor is further configured to show the each unit region and other unit regions on a displaying screen in distinct manners due to difference of the total data quantity.
14. The camera device of claim 11, wherein the total data quantity is a sum of the plurality of data quantity about all the image frames within the video film, or is a sum of the data quantity of a part of the image frames within the video film.
15. The camera device of claim 11, wherein the video film is captured during a time period, and the operational processor is configured to set a predefined period within the time period of the video film and compress the unit regions of a part of the image frames within the video film during the predefined period via the compression rate.
16. A camera system, comprising:
- at least one camera device configured to capture a video film containing a plurality of image frames; and
- a central host connected to the at least one camera device in a remote manner, and configured to receive the video film containing the plurality of image frames, to divide each image frame of the video film into a plurality of unit regions, to compute a plurality of data quantity respectively corresponding to the plurality of unit regions, to compile statistics of a total data quantity of each unit region within a plurality of image frames of the video film, and to distinguish the each unit region from other unit regions in accordance with the total data quantity.
17. The camera device of claim 16, wherein the central host is further configured to compare the total data quantity of the each unit region with a threshold, and determine a compression rate of the each unit region according to a comparison result.
18. The camera device of claim 16, wherein the central host is further configured to show the each unit region and other unit regions on a displaying screen in distinct manners due to difference of the total data quantity.
19. The camera device of claim 16, wherein the total data quantity is a sum of the plurality of data quantity about all the image frames within the video film, or is a sum of the data quantity of a part of the image frames within the video film.
20. The camera device of claim 16, wherein the video film is captured during a time period, and the central host is configured to set a predefined period within the time period of the video film and compress the unit regions of a part of the image frames within the video film during the predefined period via the compression rate.
Type: Application
Filed: Jun 12, 2018
Publication Date: Dec 20, 2018
Patent Grant number: 11403762
Inventor: Yen-Chun Liao (New Taipei City)
Application Number: 16/005,721