CN109978777A - Brightness of image adjusting method and device - Google Patents

Brightness of image adjusting method and device Download PDF

Info

Publication number
CN109978777A
CN109978777A CN201910103245.XA CN201910103245A CN109978777A CN 109978777 A CN109978777 A CN 109978777A CN 201910103245 A CN201910103245 A CN 201910103245A CN 109978777 A CN109978777 A CN 109978777A
Authority
CN
China
Prior art keywords
image
brightness
sub
macroblock
original
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.)
Granted
Application number
CN201910103245.XA
Other languages
Chinese (zh)
Other versions
CN109978777B (en
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.)
SHENZHEN REACH INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN REACH INFORMATION 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 SHENZHEN REACH INFORMATION TECHNOLOGY Co Ltd filed Critical SHENZHEN REACH INFORMATION TECHNOLOGY Co Ltd
Priority to CN201910103245.XA priority Critical patent/CN109978777B/en
Publication of CN109978777A publication Critical patent/CN109978777A/en
Application granted granted Critical
Publication of CN109978777B publication Critical patent/CN109978777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/254Analysis of motion involving subtraction of images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20224Image subtraction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

A kind of brightness of image adjusting method and device, described image brightness adjusting method include: the video image for acquiring target area;Then the moving region of the video image is obtained;The moving region is divided into multiple rectangular areas with the multiple sub-macroblocks of determination again;The sub-macroblock is the rectangle of presetted pixel width and presetted pixel length;Brightness enhancing is finally carried out to multiple sub-macroblocks according to enhancing algorithm coefficient;Since the brightness just for the moving region in video image is individually adjusted, the display effect of image, and the division by carrying out sub-macroblock to moving region are improved, the efficiency of the brightness regulation of moving region is improved.

Description

Brightness of image adjusting method and device
Technical field
The invention belongs to technical field of image processing more particularly to a kind of brightness of image adjusting methods and device.
Background technique
Image procossing (Image Processing) technology, which refers to, analyzes image by various processes pixel means, So that treated, image achievees the effect that default settings, meets the different visual demand of user, brings good view to user Feel experience, the image procossing in traditional technology generallys use digital image processing method.Digital picture, which refers to, utilizes digital camera The electronic equipments such as machine, scanner obtain image data, after carrying out advanced treating and transformation to image data, change original figure The display state of picture, for example change the color etc. of image, image can change inherent parameters according to the actual demand of user, so that Image after change, which can be crossed, to be universally applied in each different industrial technical field, thus digital image processing method for Promoting image displaying quality has high real value, correspondingly, digital image processing method also has become image procossing The main direction of development.
Digital image processing method main contents in traditional technology include: compression of images, enhancing and recovery, match, retouch State and identify these parts, common operating procedure has image digitazation, image coding, image enhancement, image restoration, image Segmentation and image analysis etc..Although other certain processing in this field can also optically or analogue technique is realized, They are like that flexibly and conveniently far away from Digital Image Processing;However there is also following disadvantages for the Digital Image Processing in traditional technology End: traditional digital image processing method can only entire picture be adjusted synchronously, such as change entire picture color etc., nothing Method distinguishes object and background, and it is even more impossible to the display states for object individually to be adjusted;Such as traditional image procossing Method can only enhance the brilliant synchrotron of all subregions of image, if user only needs for a certain sub-regions in image Brightness enhancing, traditional digital image processing method is to cannot achieve to carry out individually adaptive adjust for the pixel in the region Section, reduces the visual experience of user, and then the image processing method in traditional technology is caused to be unable to satisfy the view of different user Feel demand, and compatibility and practical value are all lowered.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of brightness of image adjusting method and devices, it is intended to solve traditional Image processing method in technical solution can not individually be adjusted the brightness of a certain sub-regions in image, image Brightness regulation effect it is poor, the bad problem of the visual experience of user.
The first aspect of the embodiment of the present invention provides a kind of brightness of image adjusting method, comprising the following steps:
Acquire the video image of target area;
Obtain the moving region of the video image;
The moving region is divided into multiple rectangular areas with the multiple sub-macroblocks of determination;The sub-macroblock is presetted pixel The rectangle of width and presetted pixel length;
Brightness enhancing is carried out to multiple sub-macroblocks according to enhancing algorithm coefficient.
The second aspect of the embodiment of the present invention provides a kind of brightness of image regulating device, described image brightness regulating apparatus Include:
Acquisition module, for acquiring the video image of target area;
Moving region obtains module, for obtaining the moving region of the video image;
Division module, for the moving region to be divided into multiple rectangular areas with the multiple sub-macroblocks of determination;The son Macro block is the rectangle of presetted pixel width and presetted pixel length;And
Enhance module, for carrying out brightness enhancing to multiple sub-macroblocks according to enhancing algorithm coefficient.
In one of them embodiment, the enhancing module includes:
Original sub-macroblock image data computing module, for the figure according to each original image pixels in the sub-macroblock As data calculate original sub-macroblock image data;And
Target sub-macroblock image data acquisition module, for according to the enhancing algorithm coefficient and the original sub-macroblock figure As data acquisition target sub-macroblock image data.
The third aspect of the embodiment of the present invention provides a kind of brightness of image regulating device, comprising: memory, processor with And the computer program that can be run in the memory and on the processor is stored, the processor executes the calculating The step of brightness of image adjusting method as described above is realized when machine program.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes brightness of image adjusting method as described above when being executed by processor The step of.
Above-mentioned brightness of image adjusting method is obtained to be regulated by the video image of acquisition continuous multiple frames in video image Moving region, moving region belongs to the sub-regions in video image, then moving region is divided into multiple sub-macroblocks, the son Macro block includes multiple pixels, the blocking brightness regulation for moving region is realized according to sub-macroblock, so that motor area in image The brightness in domain has higher self-adaptation flexible regulation performance, and all pixels being located in the same sub-macroblock can be realized It is adjusted in synchronism, simplifies the step of brightness of image is adjusted, the speed of the adjusting of brightness of image is improved by sub-macroblock;And each frame The brightness of moving region can change according to the actual demand of user in video image, meet the diversified vision need of user It asks, and then improves the flexibility of the brightness regulation of moving region in video image, improve image quality;And described image Brightness adjusting method is applicable in each different industrial application scene, is had compared with highly compatible and practical value.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the specific flow chart for the brightness of image adjusting method that one embodiment of the invention provides;
Fig. 2 is the specific flow chart for the step S102 that one embodiment of the invention provides;
Fig. 3 is the application schematic diagram for the brightness of image adjusting method that one embodiment of the invention provides;
Fig. 4 is another specific flow chart for the step S102 that one embodiment of the invention provides;
Fig. 5 is the specific flow chart for the step S103 that one embodiment of the invention provides;
Fig. 6 is the schematic diagram that the sub-macroblock that one embodiment of the invention provides divides;
Fig. 7 is the specific flow chart for the step S104 that one embodiment of the invention provides;
Fig. 8 is another specific flow chart for the brightness of image adjusting method that one embodiment of the invention provides;
Fig. 9 is the structural schematic diagram for the brightness of image regulating device that one embodiment of the invention provides;
Figure 10 is the structural schematic diagram for the enhancing module that one embodiment of the invention provides;
Figure 11 is the structural schematic diagram that the moving region that one embodiment of the invention provides obtains module;
Figure 12 is the structural schematic diagram for the division module that one embodiment of the invention provides;
Figure 13 is another structural schematic diagram for the brightness of image regulating device that one embodiment of the invention provides;
Figure 14 is another structural schematic diagram for the brightness of image regulating device that one embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Fig. 1, the detailed process of brightness of image adjusting method provided in an embodiment of the present invention, passes through the brightness of image Adjusting method can the brightness for specific region in image be individually adjusted, improve the mass effect of image, be applicable in model It encloses relatively wide;For ease of description, only the parts related to this embodiment are shown, and details are as follows, described image brightness regulation side Method includes the following steps:
S101: the video image of target area is acquired.
Optionally, the target area is the entire image information that user obtains in different environment, illustratively, institute State target area are as follows: in teacher or in factory etc., the target area represents the practical camera shooting place of user;When acquiring When continuous multiple frames video image, each frame video image includes corresponding image data, and the pixel in the video image includes phase The original complete image information answered, and with image sampling is carried out within the continuous time, it can by continuous multiple frames image Dynamic picture is shown, video display effect is presented;Therefore the present embodiment may include the video of large capacity by video image Data can show complete, clearly dynamic video image after handling for continuous multiple frames video image;Cause Brightness of image adjusting method in this present embodiment can carry out automatic adjusument, institute to the brightness of the video image of continuous multiframe Dynamic processing can be carried out to the image data of large capacity by stating brightness of image adjusting method, improve described image brightness regulation side The parallel adjusting efficiency and regulation performance of method.
S102: the moving region of the video image is obtained.
Wherein, the moving region is user's subregion to be regulated in the picture, and the moving region includes multiple Pixel, after carrying out brightness regulation for moving region, video image can be needed according to the actual demand brightness regulation of user The video content of concern;Optionally, it can be extracted from the pixel in video image accordingly according to the characteristic information in video image Object pixel, these object pixels collectively constitute moving region;Illustratively, it is selected in continuous multiple frames video image current Frame, and all object pixels are obtained in the raw video image pixel of present frame, these object pixels, which collectively constitute, works as Target area to be processed in previous frame picture.
In specific implementation, step S102 can be there are two types of situation, and step S102 may include step in the case of the first S1021 and step S1022;Wherein figure 2 show specific implementation flows in S102 provided in this embodiment, referring to Fig. 2.
S1021: by the original graph in the image data of the original image pixels in video image and previous frame video image As the image data of pixel is subtracted each other, to obtain differential pixel values.
In continuous multiple frames video image, the image data of pixel can change in moving region, according to adjacent two frame The image data differential magnitude of original image pixels can obtain object pixel to be controlled in video image in video image, according to Differential pixel values can be derived that the luminance difference amplitude of adjacent two frame video image.
Specifically, since the Moving Objects (moving region) in video image are in image acquisition process, Moving Objects meeting Continuous mobile, the original image pixels include collected image data, by comparing the original image in adjacent two frame Difference between pixel can accurately identify the Pixel Information in Moving Objects;It can be derived that fortune according to differential pixel values Dynamic pixel change information of the object in moving process;Further, after being analyzed and processed for the differential pixel values, can know It Chu not the Moving Objects complete pixel that includes;Therefore the present embodiment is according to the difference between previous frame and next frame original image pixels Different information can accurately identify Moving Objects, and the Moving Objects are as Pixel Information to be processed, by the Moving Objects from figure Individually isolation is carried out as in realize the independent adjusting of brightness of image;The essence of moving region identification is improved by step S1021 Degree and efficiency.
S1022: judge whether differential pixel values are located at pre-set interval;If judging, the differential pixel values are not located at preset areas Between, it is determined that the original image pixels in the video image belong to moving region.
Wherein, if judging, the differential pixel values are located at the pre-set interval, it is determined that original in the video image Image pixel belongs to predeterminable area.
Wherein pre-set interval belongs to the background area in video, and the predeterminable area target picture that also simultaneously non-user is adjusted Element, therefore all pixels in video image can be divided into predeterminable area and fortune according to differential pixel values by the present embodiment Dynamic region, to realize that the differentiation for pixel intensity in video image is handled, ensured in image moving region it is bright Degree of regulation is spent, the accuracy of identification for moving region in each frame video image is improved.
Since during acquiring video image pixel, the fractional object in the video image can be moved, There can be biggish difference between the video image pixel of adjacent two frame, can be obtained according to the difference between video image pixel Mobile target in video image, which behaves or object, therefore passes through the picture between adjacent two frame video image Plain difference can accurately identify moving region in video image, by all pixels component movement object in these moving regions; And all pixels in the moving region are as image object to be processed, by carrying out brightness regulation for moving region, To realize the function of individually being adjusted for brightness subregional in the middle part of video image, the brightness of image each region is improved Flexible modulation performance;To which moving region can accurately be identified to differentiation, institute from video image by step S102 State brightness of image adjusting method can the brightness to moving region individually adjusted, to improve the display quality of video image.
As an alternative embodiment, between step S1021 and step S1022, step S102 further include:
Binary conversion treatment is carried out to the differential pixel values.
It should be noted that the binary conversion treatment refers to the number that differential pixel values are converted to specific system, so that The pixel difference opposite sex feature of video image has more preferably quantifiable and is convenient for calculating;Illustratively, at by binaryzation Reason sets the gray value of differential pixel values to 0 to 255 any value;To which binary conversion treatment can make the picture of video image The characteristic of element can directly be measured by the size of number, be conducive to the accuracy of identification of moving region and brightness control in image Efficiency.
After S1021, the characteristic that the differential pixel values only reflect between adjacent two frames original image pixels is poor Different amplitude can have different dimension difference in different application scenarios;After above formula binary conversion treatment, according to two-value Changing treated, numerical values recited can immediately arrive at previous frame original image pixels and next frame original image pixels this two The specific difference amplitude of person, can be accurately obtained according to the specific difference amplitude: whether original image pixels belong to motor area The differentiation in domain, the moving region has higher precision and accuracy, accelerates sentencing for target in video image pixel Other rate, described image brightness adjusting method can accurately be adjusted specific image-region, and the quality of image is higher, control Performance processed is splendid.
Further, if the differential pixel values after binary conversion treatment are greater than preset image threshold, it is determined that The original image pixels in original image pixels and next frame in the previous frame video image belong to moving region.
Wherein, the differential pixel values after binary conversion treatment are greater than image threshold, then illustrate previous frame and next frame Video image variation it is larger, then the original image pixels in current frame video image belong to the pixel of moving region, fortune Dynamic object will cause the pixel of adjacent two frame image data when being moved in the picture differs greatly, therefore the present embodiment root The pixel in moving region, the essence of identification can be accurately identified according to the size relation between differential pixel values and image threshold It spends higher;Object pixel in multi-frame video image can be obtained according to image threshold, to form moving region;
As an alternative embodiment, if the differential pixel values after binary conversion treatment are less than or equal to described Image threshold, it is determined that the original image pixels in the current frame video image belong to the predeterminable area.
Wherein the predeterminable area includes a large amount of background pixel, if the original image pixels in current frame image are background Pixel then illustrates the pixel of the original image pixels and non-user actual needs brightness regulation;For video image brightness into When row is adjusted, need to exclude the interference of background pixel, it is only necessary to retain the brightness regulation of pixel in moving region;If therefore according to Differential pixel values confirmation original image pixels belong to background pixel, then do not need to take background pixel brightness regulation measure, Inaccurate problem is controlled to avoid the brightness of whole pixel in video image.
It, will be specific by one below with reference to Fig. 2 in order to better illustrate the extraction principle of moving region in the present embodiment Application scenarios illustrate: how the pixel for springing up region is obtained from video image.
Wherein Fig. 3 shows the application schematic diagram of brightness of image adjusting method provided in this embodiment, exists in Fig. 3 continuous N frame video image, the N are the positive integer more than or equal to 3, and in this N frame video image, human body is as movement pair As, and the image of the human body is the object pixel for needing to carry out brightness regulation, other any objects in addition to human body all belong to In background pixel, since there are pixels in continuous two frame video image, such as between the 1st frame and the 2nd frame video image Image data difference;It is mobile due to there was only human body in video image, and other objects are all static, if the 1st frame There are biggish differences between original image pixels and the original image pixels of the 2nd frame, then illustrate the original image pixels of the 2nd frame Belong to the range of Moving Objects (human body), these pixels belong to moving region;On the contrary, the original image pixels and the 2nd frame of the 1st frame Original image pixels between it is minimum without difference or difference amplitude, the minimum difference pixel value of these differences be usually by External disturbance amount causes, and the original image pixels of the 2nd frame belong to background area;Therefore referring to Fig. 3 is examined, pass through comparison adjacent two Difference between frame image can wiping out background information, retain Moving Objects, described image brightness adjusting method can be only to fortune The brightness of dynamic object is adjusted, and the pixel in moving region collectively constitutes Moving Objects.
Step S102 may include step S701, step S702 and step S703, illustratively, figure under second situation 4 show another implementation process of the step S102 provided in this embodiment, as shown in Figure 4.
S701: by the original image picture in the gray value of the original image pixels in video image and previous frame video image The gray value of element is subtracted each other, to obtain gray scale difference score value;By the saturation degree of the original image pixels in video image with it is previous The saturation degree of original image pixels in frame video image is subtracted each other, to obtain saturation degree difference value.
In S701, previous frame video image and next frame video can comprehensively be analyzed by sum of the grayscale values saturation degree Difference degree between image can recognize that the luminance difference between previous frame image and next frame image according to gray scale difference score value It is different, the heterochromia between previous frame image and next frame image can recognize that according to saturation degree difference value;According to gray scale difference Score value and saturation degree difference value can accurately obtain the situation of change that pixel in object is run in image, by analyzing grey scale difference Value and saturation degree difference value can be more accurate monitor the moving condition of the pixel of moving region in continuous multiple frames video image, Improve the identification accuracy and reliability for moving region in video image.
S702: binary conversion treatment is carried out to the gray scale difference score value and the saturation degree difference value.
It can be improved brightness calculation precision and accurate fixed, the institute for original image pixels in image by binary conversion treatment Stating gray scale difference score value and saturation degree difference value can be used the number more quantified and is indicated;Illustratively, at by binaryzation After reason, gray scale difference score value is 100, saturation degree difference value are as follows: 5 (red);It therefore can be more by the value after binary conversion treatment It is accurately obtained the difference amplitude of image feature information in consecutive frame, is conducive to the fortune for searching out user's needs in video image Dynamic region, the display quality of video image can be ensured by described image brightness adjusting method.
S703: if the gray scale difference score value after binary conversion treatment and/or the saturation degree difference after binary conversion treatment Value is greater than described image threshold value, it is determined that the original image pixels in present frame belong to moving region.
Specifically, if the gray scale difference score value after binary conversion treatment and the saturation degree difference value after binary conversion treatment Less than or equal to described image threshold value, it is determined that the original image pixels in the present frame belong to background area.
In the present embodiment, adjacent two frame can be obtained by the amplitude of the amplitude of gray scale difference score value and saturation degree difference value Difference between video image illustratively if the amplitude of the gray scale difference score value after binary conversion treatment is bigger, illustrates The luminance difference of original image pixels between one frame and next frame is bigger;If the saturation degree difference value after binary conversion treatment It is bigger, then illustrate that the heterochromia of the original image pixels between previous frame and present frame is bigger;When gray scale difference score value and saturation Spend both difference values any one when being greater than image threshold, then illustrate that the pixel belongs to the pixel of moving region, only move Object just will cause brightness between adjacent two frame video image and/or color there are biggish difference, then present frame is former Beginning image pixel belongs to the pixel of moving region to be regulated;If opposite gray scale difference score value and saturation degree difference value both less than or Equal to image threshold, then illustrate that the luminance difference between adjacent two frame video image is extremely low, even 0, then the video of present frame Image does not have biggish difference, which belongs to static image, the sum of the grayscale values saturation degree of the two image pixel it Between and be not present biggish undulating value;Therefore the present embodiment is by both sum of the grayscale values saturation degrees of original image pixels in phase Situation of change in adjacent two frame video images, to accurately obtain moving region in multi-frame video image;The present embodiment can basis Video image accurately obtains the pixel of moving region in multi-frame video image in the pixel situation of change of adjacent two frame, to be formed Moving Objects improve the brightness regulation precision and brightness regulation accuracy of specific region in video image.
S103: the moving region is divided into multiple rectangular areas with the multiple sub-macroblocks of determination;The sub-macroblock is pre- If the rectangle of pixel wide and presetted pixel length.
Wherein, each sub-macroblock includes that multiple pixels of moving region are then transported when the brightness of sub-macroblock changes The brightness of multiple pixels in dynamic region can be realized synchronous variation;Basic components of the sub-macroblock as image procossing, pass through The processing of sub-macroblock can be synchronized, the brightness of multiple pixels is adjusted in bulk, so that the brightness of sub-macroblock can be by Actual demand according to user is adjusted, and the brightness of multiple sub-macroblocks also has good controllability;Therefore pass through The all pixels of moving region in present frame are divided into multiple sub-macroblocks by S103, that is, improve the brightness of multiple pixels in image Flexible adjustment improves the brightness regulation efficiency of pixel in movement section again.
In specific implementation, step S103 includes that step S1031 and step S1032, Fig. 5 show step provided in this embodiment The specific implementation flow of rapid S103, referring to Fig. 5.
Wherein, the sub-macroblock parameter S1031: is determined according to the area of the moving region;The sub-macroblock parameter packet Include the presetted pixel width and the presetted pixel length.
The moving region includes multiple pixels, and the area of sub-macroblock can be arranged according to the area of moving region, to improve To the efficiency of moving region brightness regulation in video image;Wherein the sub-macroblock includes multiple pixels of moving region, is passed through The quantity of pixel in each macro block is rationally set, mass can be carried out to the object pixel in video image by sub-macroblock Processing improves the efficiency that brightness of image is adjusted while guaranteeing video image display effect.
After carrying out adaption brightness adjusting to each sub-macroblock in video image, the brightness of specific region in image Corresponding change can occur according to the actual demand of user;Illustratively, the sub-macroblock are as follows: 4*4 pixel, 8*8 pixel, 16* 16 pixels or 32*32 pixel;User can select the size of sub-macroblock according to the size of original image pixels, to realize video figure Quick, the efficient adjusting of moving region brightness as in.
S1032: the moving region is divided with the multiple sub-macroblocks of determination according to the sub-macroblock parameter;The son Macro block is the rectangle of the presetted pixel width and the presetted pixel length.
As an alternative embodiment, being divided the moving region with true according to the sub-macroblock parameter Fixed multiple sub-macroblocks, specifically:
The area of the sub-macroblock is less than the area of the moving region, and the pixel quantity in each sub-macroblock It is identical.
Therefore by the quantity of pixel in each sub-macroblock of mean allocation in the present embodiment, when for every in moving region When the brightness of one sub-macroblock is adjusted respectively, brightness between different sub-macroblocks by the variation of being consistent property, harmony, The brightness change of all sub-macroblocks exactly matches in video image, and the color range difference between different moving regions is smaller, video Moving region in image can show quality more preferably overall picture.
Illustratively, Fig. 6 shows the schematic diagram that sub-macroblock provided in this embodiment divides, as shown in fig. 6, in each frame In video image, if, according to the size of moving region in present frame, will be transported after obtaining the moving region in current frame video image Several pixels are divided into multiple sub-macroblocks in dynamic region, include the pixel of identical quantity in each sub-macroblock;Therefore by setting Adjustment can be synchronized to the brightness of multiple pixels by setting the sub-macroblock in moving region, so that movement pair in the video image The brightness of elephant rapidly can individually be adjusted according to the actual demand of user;The brightness of moving region has more in present frame Add flexible regulative mode and regulating effect, is conducive to the brightness regulation efficiency for improving Moving Objects.
S104: brightness enhancing is carried out to multiple sub-macroblocks according to enhancing algorithm coefficient.
Wherein in S104, the brightness of each sub-macroblock in moving region can instruct generation depending on the user's operation Adaptively changing, therefore the brightness of the sub-macroblock of each in moving region can be adjusted one by one, improve each frame The flexibility of the brightness regulation of moving region in video image improves the adjusting efficiency and adjustment speed of brightness of image;When right After all sub-macroblocks in moving region in the video image of present frame are adjusted, the spy in current frame video image Corresponding change occurs for the brightness for determining region, at this point, the pixel in S104 after output enhancing in moving region, the color range of the pixel Corresponding change has had occurred according to the actual demand of user with color;And it in video image after adjustment, only transports The brightness of pixel changes in dynamic region, and the brightness of non-moving areas not changes, and then realizes present frame video The independent regulatory function of specific region brightness, is highlighted moving region in image.
In specific implementation, step S104 may include that step S1041 and step S1042, Fig. 7 have gone out provided in this embodiment The concrete operations process of S104, as shown in Figure 7.
S1041: original sub-macroblock image is calculated according to the image data of each original image pixels in the sub-macroblock Data.
Optionally, the average value for calculating the image data of each original image pixels in the sub-macroblock is original to obtain Sub-macroblock image data.
Specifically, obtaining image data of each original image pixels in yuv space in the sub-macroblock;It is wherein described Y indicates the original brightness of the pixel, and the U and the V respectively represent the first original color difference of the pixel and second original Color difference;It is macro to obtain son that average value is calculated according to original brightness of each original image pixels in sub-macroblock in yuv space The original brightness of block;It is average according to first original Colorimetry of each original image pixels in sub-macroblock in yuv space Value is with the obtain sub-macroblock first original color difference;According to each original image pixels in sub-macroblock in yuv space second Original Colorimetry average value is with the obtain sub-macroblock second original color difference.
Optionally, described image data include brightness and the color difference of pixel, and the color difference can represent each pixel Color difference;In exemplary yuv space in the present embodiment, the color that the U represents pixel is partially red, described in the V representative The color of pixel is partially purple;The characteristic information of each pixel in original sub-macroblock can be accurately obtained by the image data; The yuv space can be integrated point according to image data of the pixel in yuv space as the compound standard of pixel in video image Brightness and the color of pixel is precipitated;Therefore by obtaining characteristic value of the sub-macroblock under yuv space, be conducive to sub-macroblock Central Plains Beginning image pixel is accurate and quantification treatment, when the original sub-macroblock is in yuv space, each in the moving region The brightness of sub-macroblock and color can be used numerical value and be indicated, and the brightness calculation of pixel is more accurate, improve for sub-macroblock In each pixel intensity degree of regulation, the brightness of each original sub-macroblock has higher adjustability in present frame.
Since the sub-macroblock includes multiple original image pixels, when obtaining the figure of each original image pixels in present frame When as data, which includes the initial data in the fortune function region in video image, can be according to the original sub-macroblock picture number It is factually adjusted referring now to the adaption brightness of sub-macroblock, improves the degree of regulation for moving region brightness in video image, Avoid brightness regulation error.
S1042: according to the enhancing algorithm coefficient and the original sub-macroblock image data acquisition target sub-macroblock image Data.
Original sub-macroblock image data and target sub-macroblock image data in the present embodiment there are one-to-one relationship, It therefore, can be according to original sub-macroblock image data mapping objects sub-macroblock image data;Described image brightness adjusting method can be pressed Actual demand according to user makes the moving region in video image realize adaptively changing.
Illustratively, the pixel value of video image includes: sum of the grayscale values saturation degree;Wherein the gray value can reflect The color grading of pixel, in general, the gray value of pixel is 0~255, when by the gray value difference of pixel, video image is in Existing color and brightness be not also identical, therefore the difference letter of the brightness of pixel can be obtained by the grey value difference information of pixel Breath, precision are high;Wherein the saturation degree represents the depth or vividness of the color of pixel, and different colors is often in nature It is to be mixed by the light source for not stopping color, therefore the color change feelings of pixel can be obtained by the variation of the amplitude of saturation degree Condition, and then obtain the color difference amplitude between two pixels;Therefore the present embodiment by combine sum of the grayscale values saturation degree this two A parameter can synthetically obtain the characteristic image information of pixel, to monitor the video image between adjacent two frame more fully hereinafter Situation of change.
As an alternative embodiment, in S104, according to enhancing algorithm coefficient to the bright of multiple sub-macroblocks Degree is enhanced, specifically:
By the quantity of all pixels in the moving region divided by the quantity of all pixels in the sub-macroblock, to obtain picture Element processing serial number.
It is dealt with objects the processes pixel serial number as finite element.
According to the processes pixel serial number determine macroblock sequence successively according to enhancing algorithm coefficient to the finite element at The brightness of sub-macroblock described in each of reason object is enhanced.
In the present embodiment, in sub-macroblock pixel quantity be less than moving region in pixel quantity, then all sons are macro The pixel set of block composition represents the moving region that user needs to carry out brightness processed, therefore the present embodiment is by calculating movement The quantity of sub-macroblock in region, and putting in order according to sub-macroblock, set each of current frame video image sub-macroblock Serial number is set, so that all sub-macroblocks in moving region have sequencing, uniqueness of the serial number as each sub-macroblock Label;Illustratively, moving region includes 3 sub-macroblocks, and the serial number of these three sub-macroblocks is successively are as follows: the 1st, the 2nd, the 3rd;Therefore It, can be accurately for every in video image during the sub-macroblock of Moving Objects carries out brightness regulation in for video image The brightness of one sub-macroblock is individually regulated and controled, so that the brightness of sub-macroblock can be realized accurate tune in the video image The problem of saving, avoiding the occurrence of the brightness regulation entanglement of different target pixel in video image.
There are multiple sub-macroblocks for the moving region of present frame, in order to realize the brightness for object pixels all in present frame It adjusts, using the sub-macroblock as finite element, the brightness of several object pixels is adjusted such that for the brightness of finite element It can synchronize and change, the brightness of moving region can real time enhancing in the video image;Therefore by the institute in moving region There is sub-macroblock to deal with objects as finite element, has ensured that the brightness of a width video image in present frame can be according to the practical need of user It is adjusted, the brightness of moving region has higher Modulatory character in video image, after significantly enhancing brightness regulation Video image quality effect.
Each sub-macroblock has specific serial number, then can find matched sub-macroblock, the picture according to serial number It include the tandem of multiple sub-macroblocks in element processing serial number, according to the sequencing of sub-macroblock arrangement to each sub-macroblock packet The brightness of all pixels contained carries out unified adjusting;Illustratively, when the brightness regulation of first sub-macroblock in video image When completion, then in adjusting video images second sub-macroblock brightness, and so on;So each of moving region is macro The brightness of block can carry out adaptive, independent adjusting, and the pixel of Moving Objects has more flexible adjust in video image Mode, when sub-macroblocks all in moving region brightness all when the adjustment is completed, the brightness in video image portion region in present frame Also it changes according to the operational order of user, the brightness of Moving Objects adjustability with higher in video image ensures The scope of application of brightness of image adjusting method in the present embodiment.
Therefore after the moving region in image is divided multiple finite elements by this implementation, using the finite element as processing pair As, by sequentially carrying out brightness of image adjusting for each sub-macroblock in video image, target in video image pixel it is bright Degree can be uniformly changed according to the actual demand of user, accelerate the adjusting efficiency and adjusting of video pixel in video image The brightness of precision, each pixel of moving region can individually enhance, and described image brightness adjusting method is for image The regulation performance of brightness is more preferably;The processing mode that the moving region of image is used to finite element, improves specific region in image Brightness regulation speed and simplify brightness regulation step so that by brightness of image adjust after image can widely fit For in each different industrial scene.
As an alternative embodiment, the original sub-macroblock image data includes original brightness, the first original color Degree and the second original colorimetric, the target sub-macroblock image data includes object brightness, first object coloration and the second aim colour Degree, the enhancing algorithm coefficient include that the first enhancing algorithm coefficient, the second enhancing algorithm coefficient and third enhance algorithm coefficient;Institute State step S1042 specifically:
The target sub-macroblock image data is calculated according to following formula:
Wherein in above formula (1), y ' is the object brightness of the sub-macroblock, and u ' is described the first of the sub-macroblock Target colorimetric, v ' are second target colorimetric of the sub-macroblock, and y is the original brightness of the sub-macroblock, and the u is First original colorimetric of the sub-macroblock, the v are the second original colorimetric of the sub-macroblock, ρ 1, are increased for described first Strong algorithms coefficient, ρ 2 are the second enhancing algorithm coefficient, and ρ 3 is that the third enhances algorithm coefficient.
Optionally, the value range of the ρ 1, the ρ 2 and the ρ 3 are as follows: -180 °~180 °.
The object brightness of target sub-macroblock can directly be calculated by above formula (1), the brightness of the moving region can press Accurate change occurs according to the actual needs of user, when the image data of each of moving region sub-macroblock occurs accordingly When change, the flexibility and controllability of the brightness regulation of the video image are improved.
The present embodiment introduces yuv space during the brightness to sub-macroblock is adjusted, right under the space YUV The brightness of all pixels carries out calculating adjusting in video image, so that the brightness change of sub-macroblock has higher adjustability and can Control property, carries out conversion calculating to the brightness of sub-macroblock with specific formula under yuv space, so that sub-macroblock in moving region Brightness regulation has higher precision;The present embodiment can carry out the brightness of sub-macroblock in different application scenarios adaptive It adjusts, sub-macroblock brightness and the adjusting of color have higher accuracy and reliability, all sons of moving region in present frame Macro block can realize accurate brightness regulation, easy to operate, and described image brightness adjusting method has accurate calculation formula Realize the brightness regulation for specific region in each frame video image so that described image brightness adjusting method have it is higher Compatibility, the brightness of all pixels of moving region has higher image display effect after overregulating in video image.
The brightness to multi-frame video image is needed by brightness of image adjusting method in this present embodiment while being adjusted, It is more after exportable brightness enhancing at this time if the present embodiment has adjusted the brightness of the moving region of each frame image pixel and finished Frame video image, to bring good dynamic vision to experience to user;If not carrying out brightness tune to the video image of all frames Section, then need to continue that the pixel for not carrying out brightness regulation in continuous multiple frames video image is adjusted, and updates present frame video The image information of image is returned into the above-mentioned each step of brightness of image adjusting method, realizes the movement for present frame The adaption brightness of pixel is adjusted in region, successively carries out circulating luminance adjusting for continuous multiple frames video image, until for The brightness of each frame object pixel in continuous multiple frames video image all adjusts completion;Brightness of image adjusting side in the present embodiment Method can continuously export video image of the multiframe after brightness regulation, and the brightness of the moving region of each frame video image It is able to carry out independent adjusting, has ensured the automatic adjusument efficiency for multi-frame video brightness of image, and improve multi-frame video The dynamic video of image shows quality.
As a kind of optional embodiment, Fig. 8 shows the another kind of brightness of image adjusting method provided in this embodiment Implementation process, wherein the difference of the embodiment of the present embodiment and Fig. 1 is, before step S104, described image brightness regulation Method further includes step S904 and step S905.
S904: scene Recognition is carried out to obtain scene information to video image.
In the present embodiment, by carrying out mode treatment for the pixel in video image, when for different target areas Domain acquire video image after, in different external environments, in video image by the brightness adjustment approach of moving region just It is not identical;Therefore identification classification carried out to scene information by S904, under different scenes for the brightness of video image into Row automatic adjusument, so that according to the actual demand of user brightness change can occur for the video image in each type target region, Described image brightness adjusting method can suitable for various external environments, in video image the brightness of moving region can according to The actual demand at family changes, to meet the different visual demands of user.
S905: the enhancing algorithm coefficient is obtained according to the scene information.
With reference to above-described embodiment, in the scene information for getting target area, can be obtained and the matched increasing of scene information Strong algorithms coefficient, the optimal parameter which is adjusted as sub-macroblock in the moving region are calculated according to the enhancing Method coefficient can make the brightness of sub-macroblock have most flexible Modulatory character;When described image brightness adjusting method is applied in difference External environment in, enhancing algorithm coefficient adaptively changing can occur according to the variation of the image information of target area, with reality Referring now to independent, the accurate regulation performance of specific region in video image, user can obtain the higher video image of picture quality.
Therefore in the present embodiment, described image brightness adjusting method can be compatible with suitable for different environment, image According to the variation of application scenarios adaptively changing can occur for the enhancing algorithm coefficient in brightness adjusting method, to realize for view The best regulation performance of moving region has ensured the vision of user to reach optimal video image display effect in frequency image Experience.
Fig. 9 shows the structural representation of brightness of image regulating device 100 provided in this embodiment, as shown in Figure 10, the figure Image brightness regulating device 100 includes: acquisition module 1001, moving region acquisition module 1002, division module 1003 and enhancing Module 1004.
Acquisition module 1001 is used to acquire the video image of target area.
Moving region obtains the moving region that module 1002 is used to obtain the video image.
Division module 1003 is used to the moving region being divided into multiple rectangular areas with the multiple sub-macroblocks of determination;It is described Sub-macroblock is the rectangle of presetted pixel width and presetted pixel length.
It should be noted that the brightness of image regulating device 100 in Fig. 9 is opposite with the brightness of image adjusting method in Fig. 1 It answers, therefore the specific embodiment about the modules of brightness of image regulating device 100 in Fig. 9 can refer to the embodiment of Fig. 1, It is no longer described in detail herein.
As shown in Figure 10, the enhancing module 1004 includes original sub-macroblock image data computing module 110 and target Macroblock image data acquisition module 111.
Wherein, original sub-macroblock image data computing module 110 is used for according to each original image in the sub-macroblock The image data of pixel calculates original sub-macroblock image data.
Target sub-macroblock image data acquisition module 111 is used for according to the enhancing algorithm coefficient and the original sub-macroblock Image data acquisition target sub-macroblock image data.
As shown in figure 11, it includes: that differential pixel obtains module 120 and judgment module 121 that moving region, which obtains module 1002,.
Differential pixel obtains module 120 and is used to regard the image data of the original image pixels in video image and former frame The image data of original image pixels in frequency image is subtracted each other, to obtain differential pixel values.
Judgment module 121 is for judging whether the differential pixel values are located at pre-set interval;
If moving region, which obtains module 121, judges that the differential pixel values are not located at pre-set interval for judgment module 121, Then determine that the original image pixels in the video image belong to moving region.
As shown in figure 12, division module 1003 includes parameter acquisition module 130 and macro block setting module 131.
Parameter acquisition module 130 is used to determine the sub-macroblock parameter according to the area of the moving region;The son is macro Block parameter includes the presetted pixel width and the presetted pixel length.
Macro block setting module 131 is multiple with determination for being divided according to the sub-macroblock parameter to the moving region Sub-macroblock;The sub-macroblock is the rectangle of the presetted pixel width and the presetted pixel length.
As shown in figure 13, brightness of image regulating device 100 can also include that scene Recognition module 143 and algorithm coefficient obtain Module 144.
Scene Recognition module 143 is used to carry out scene Recognition to video image to obtain scene information.
Algorithm coefficient obtains module 144 and is used to obtain the enhancing algorithm coefficient according to the scene information.
Figure 14 is another structural schematic diagram for the brightness of image regulating device 150 that one embodiment of the invention provides.Such as figure Shown in 14, the brightness of image regulating device of the embodiment includes: processor 1501, memory 1502 and is stored in described deposit In reservoir 1502 and the computer program 1503 that can be run on the processor 1501;The processor 1501 executes the meter The step in above-mentioned each brightness of image adjusting method embodiment is realized when calculation machine program 1503, such as S101 shown in FIG. 1 is extremely S104.Alternatively, the processor 1501 realizes above-mentioned each brightness of image regulating device when executing the computer program 1503 The function of each module in 100 embodiments, for example, acquisition module 1001 shown in Fig. 9 to enhancing module 1004 function.
In the present embodiment, since the instruction of this corresponding operation, the brightness of image being stored in advance in computer program Regulating device 150 has access to continuous multiple frames video image information, according to the actual needs of user, by the movement in video image Region is as target object to be processed, by being identified, being separated for the pixel in the Moving Objects, calculated and turned It changes, so that the pixel in each frame video image can realize brightness automatic adjusument, passes through the brightness of image regulating device 150 can continuously adjust the brightness of moving region in continuous multiple frames video image, with realize in video image not Difference with region pixel intensity adjusts;Brightness of image regulating device 150 in the present embodiment is for pixel in video image Adjusting has preferable controllability and flexibility, and described image brightness regulating apparatus 150 can be only in continuous multiple frames video image Specific region be adjusted, by the image after brightness regulation have higher quality, bring more preferably vision body to user It tests;Brightness of image regulating device in effective solution traditional technology can not the brightness to specific region in video image carry out It individually adjusts, the brightness adjustability of video image is not high, and described image brightness regulating apparatus exports the enhanced image of brightness Quality is bad, and traditional brightness of image regulating device can not be universally applied to each different industrial technical field, user's The bad problem of visual experience.
Illustratively, the computer program 1503 can be divided into one or more module/units, it is one or Multiple module/the units of person are stored in the memory 1502, and are executed by the processor 1501, to complete the present invention. One or more of module/units can be the series of computation machine program instruction section that can complete specific function, the instruction Section is for describing implementation procedure of the computer program 1503 in described image brightness regulating apparatus 150.
Described image brightness regulating apparatus 150 can be desktop PC, notebook, palm PC and cloud server Deng calculating equipment.Described image brightness regulating apparatus 150 may include, but be not limited only to, processor 1501, memory 1502.This Field technical staff is appreciated that Figure 14 is only the example of brightness of image regulating device 150, does not constitute to brightness of image tune The restriction of regulating device 150 may include perhaps combining certain components or different portions than illustrating more or fewer components Part, such as described image brightness regulating apparatus 150 can also include input-output equipment, network access equipment, bus etc..
Alleged processor 1501 can be central processing unit (Central Processing Unit, CPU), can be with It is other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 1502 can be the internal storage unit of described image brightness regulating apparatus 150, such as image is bright Spend the hard disk or memory of regulating device 150.The memory 1502 is also possible to the outside of described image brightness regulating apparatus 150 The plug-in type hard disk being equipped in storage equipment, such as described image brightness regulating apparatus 150, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, described to deposit Reservoir 1502 can also both including described image brightness regulating apparatus 150 internal storage unit and also including External memory equipment. The memory 1502 is for other journeys needed for storing the computer program and described image brightness regulating apparatus 150 Sequence and data.The memory 1502 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed brightness of image regulating device 150 and figure Image brightness adjusting method, may be implemented in other ways.For example, brightness of image regulating device 150 described above is real Apply that example is only schematical, for example, the division of the module or unit, only a kind of logical function partition is practical to realize When there may be another division manner, such as multiple units or components can be combined or can be integrated into another system, or Some features can be ignored or not executed.Another point, shown or discussed mutual coupling or direct-coupling or communication Connection can be through some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical property, mechanical or other Form.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example diagram image brightness adjusting method can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, which is being executed by processor When, it can be achieved that the step of above-mentioned each brightness of image adjusting method embodiment.Wherein, the computer program includes computer journey Sequence code, the computer program code can be source code form, object identification code form, executable file or certain intermediate shapes Formula etc..The computer-readable medium may include: any entity or device, note that can carry the computer program code Recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium Deng.It should be noted that the content that the computer-readable medium includes can be real according to legislation in jurisdiction and patent The requirement trampled carries out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium It does not include electric carrier signal and telecommunication signal.
Brightness of image adjusting method in the present invention can individually be adjusted for the brightness of moving region in video image Section, so that according to the actual needs of user corresponding change, multi-frame video occur for the brightness of specific region in the video image Image can be presented quality more preferably effect, user can obtain be more clear, complete image information, the visual experience pole of user It is good;Therefore described image brightness adjusting method is applicable in each different technical field, below by brightness of image adjusting side Method is applied in instructional video image, and the embodiment of brightness of image adjusting method of the invention is illustrated with this, specific as follows:
The instructional video image in the continuous time is being preset by obtaining;The instructional video image includes corresponding video Information, the video information includes lecture content of the teacher in video record, by completely obtaining the video of attending class of teacher, Lecture contents when saving teacher at school;To can be used as demonstration class by collected continuous multiple frames instructional video image Hall video data, can greatly improve the efficiency of attending class of teacher, the scope of application is extremely wide.
Referring to the embodiment of above-mentioned Fig. 1 to Fig. 8, at the original image pixels in each frame instructional video image After reason, to obtain the moving region in instructional video image, pretreated movement is needed in fortune Regional Representative's video image Object, illustratively, the Moving Objects are teacher;Then successively to mesh in each frame video image in instructional video image The brightness of mark pixel is adjusted, so that the brightness of moving region is according to the practical need of user in the multiframe instructional video image It asks and changes, improve the video display quality in instructional video image;Therefore the brightness of image adjusting method in the present embodiment For moving region specific in instructional video image can identify and enhance its brightness, to reach stronger religion Video record effect is learned, user more intuitively can obtain teaching knowledge by the instructional video image after brightness regulation, greatly Ground enhances user for the comprehension and memory of teachers knowledge point, improves the efficiency of attending class of teacher.
When getting the teaching image of continuous multiple frames, in order to improve user for special exercise area in teacher's video image Domain is attended class the comprehension of knowledge point, and the brightness of specific region in instructional video image is needed to change according to the actual demand of user Become, for example the brightness of image of individual this kind of to the teacher in instructional video image is needed to enhance, so that user watches one section Lecture content when can be important to note that teacher at school when the instructional video of time, avoids the background area of image from (such as saying Platform, blackboard etc.) content of attending class of teacher is interfered, the display quality of instructional video image is promoted, user has higher Learning efficiency;Therefore described image brightness adjusting method can be according to the ornamental demand of user to continuous multiple frames instructional video image In moving region distinguish and identify, the brightness just for specific region in image is adjusted, improve in image The adjusting efficiency and adjusting accuracy of brightness, can more protrude teacher by the multiframe instructional video image after brightness regulation Lecture content on classroom, more preferably, brightness of image adjusting method is for instructional video in the present embodiment for the quality of instructional video Brightness regulation there is higher flexibility and reliability, the usage experience of user is higher;It efficiently solves in traditional technology Can only the brightness for all pixels in instructional video carry out unified adjusting, can not for specific region in image brightness into Row is adaptive individually to be adjusted, and the brightness adjustability of traditional teaching image is not high, and the display effect of instructional video is poor, reduces User watches the efficiency of attending class in instructional video, compatible and lower practical value problem.
It should be noted that examples detailed above is only an embodiment, the brightness of image being not meant as in the present invention Adjusting method may be only available for education sector, on the basis without prejudice to operating procedure essential in above-mentioned brightness of image adjusting method On, described image brightness adjusting method can be suitable for the every field such as music video, TV play video by technical staff;Due to this Brightness of image adjusting method in invention can be adjusted just for the brightness of specific pixel in video image, greatly improve The brightness of the regulating effect of brightness in video image, the video image has more flexible adjustability and operability, The display quality of video image is higher;To which the picture adjustment methods in the present invention are for the hair of video image processing in this field Exhibition has extremely important positive effect, will generate higher practical value.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within principle.

Claims (10)

1. a kind of brightness of image adjusting method, which comprises the following steps:
Acquire the video image of target area;
Obtain the moving region of the video image;
The moving region is divided into multiple rectangular areas with the multiple sub-macroblocks of determination;The sub-macroblock is presetted pixel width With the rectangle of presetted pixel length;
Brightness enhancing is carried out to multiple sub-macroblocks according to enhancing algorithm coefficient.
2. brightness of image adjusting method according to claim 1, which is characterized in that the fortune for obtaining the video image Dynamic region specifically:
By the figure of the original image pixels in the image data of the original image pixels in video image and previous frame video image As data are subtracted each other, to obtain differential pixel values;
Judge whether the differential pixel values are located at pre-set interval;
If judging, the differential pixel values are not located at pre-set interval, it is determined that the original image pixels in the video image belong to Moving region.
3. brightness of image adjusting method according to claim 1, which is characterized in that described to be divided into the moving region Multiple rectangular areas are with the multiple sub-macroblocks of determination;The sub-macroblock is the rectangle packet of presetted pixel width and presetted pixel length It includes:
The sub-macroblock parameter is determined according to the area of the moving region;The sub-macroblock parameter includes that the presetted pixel is wide Degree and the presetted pixel length;
The moving region is divided with the multiple sub-macroblocks of determination according to the sub-macroblock parameter;The sub-macroblock is described The rectangle of presetted pixel width and the presetted pixel length.
4. brightness of image adjusting method according to claim 2, which is characterized in that it is described according to enhancing algorithm coefficient to more A sub-macroblock carries out brightness enhancing
Original sub-macroblock image data is calculated according to the image data of each original image pixels in the sub-macroblock;
According to the enhancing algorithm coefficient and the original sub-macroblock image data acquisition target sub-macroblock image data.
5. brightness of image adjusting method according to claim 4, which is characterized in that the original sub-macroblock image data packet Original brightness, the first original colorimetric and the second original colorimetric are included, the target sub-macroblock image data includes object brightness, first Target colorimetric and the second target colorimetric, the enhancing algorithm coefficient include the first enhancing algorithm coefficient, the second enhancing algorithm coefficient Enhance algorithm coefficient with third;It is described according to the enhancing algorithm coefficient and original sub-macroblock image data acquisition target Macroblock image data specifically:
The target sub-macroblock image data is calculated according to following formula:
Wherein, y ' is the object brightness of the sub-macroblock, and u ' is the first object coloration of the sub-macroblock, and v ' is institute State second target colorimetric of sub-macroblock, y is the original brightness of the sub-macroblock, the u for the sub-macroblock institute The first original colorimetric is stated, the v is the second original colorimetric of the sub-macroblock, ρ 1, enhances algorithm coefficient for described first, ρ 2 is The second enhancing algorithm coefficient, ρ 3 are that the third enhances algorithm coefficient.
6. brightness of image adjusting method according to claim 1, which is characterized in that it is described according to enhancing algorithm coefficient to more A sub-macroblock carries out before brightness enhancing further include:
Scene Recognition is carried out to obtain scene information to video image;
The enhancing algorithm coefficient is obtained according to the scene information.
7. a kind of brightness of image regulating device, which is characterized in that described image brightness regulating apparatus includes:
Acquisition module, for acquiring the video image of target area;
Moving region obtains module, for obtaining the moving region of the video image;
Division module, for the moving region to be divided into multiple rectangular areas with the multiple sub-macroblocks of determination;The sub-macroblock For the rectangle of presetted pixel width and presetted pixel length;And
Enhance module, for carrying out brightness enhancing to multiple sub-macroblocks according to enhancing algorithm coefficient.
8. brightness of image regulating device according to claim 7, which is characterized in that the enhancing module includes:
Original sub-macroblock image data computing module, for the picture number according to each original image pixels in the sub-macroblock According to the original sub-macroblock image data of calculating;And
Target sub-macroblock image data acquisition module, for according to the enhancing algorithm coefficient and the original sub-macroblock picture number According to acquisition target sub-macroblock image data.
9. a kind of brightness of image regulating device characterized by comprising memory, processor and be stored in the memory In and the computer program that can run on the processor, the processor realize such as right when executing the computer program It is required that the step of any one of 1 to 6 described image brightness adjusting method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization is such as any one of claim 1 to 6 described image brightness adjusting method when the computer program is executed by processor Step.
CN201910103245.XA 2019-02-01 2019-02-01 Image brightness adjusting method and device Active CN109978777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910103245.XA CN109978777B (en) 2019-02-01 2019-02-01 Image brightness adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910103245.XA CN109978777B (en) 2019-02-01 2019-02-01 Image brightness adjusting method and device

Publications (2)

Publication Number Publication Date
CN109978777A true CN109978777A (en) 2019-07-05
CN109978777B CN109978777B (en) 2021-10-15

Family

ID=67076873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910103245.XA Active CN109978777B (en) 2019-02-01 2019-02-01 Image brightness adjusting method and device

Country Status (1)

Country Link
CN (1) CN109978777B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112396559A (en) * 2019-08-19 2021-02-23 王艳苓 Live broadcast picture orientation beauty platform
CN113038093A (en) * 2021-03-26 2021-06-25 华东理工大学 System, method, device, processor and storage medium for realizing video image flicker suppression processing based on moving object detection
CN113034412A (en) * 2021-02-25 2021-06-25 北京达佳互联信息技术有限公司 Video processing method and device
CN113487513A (en) * 2021-07-20 2021-10-08 浙江大华技术股份有限公司 Picture brightness adjusting method and adjusting device and storage medium thereof
CN114972124A (en) * 2022-07-29 2022-08-30 自然资源部第三地理信息制图院 Remote sensing image brightness self-adaptive equalization method and system
CN115547230A (en) * 2022-11-23 2022-12-30 南京芯视元电子有限公司 Video data display processing method and device, micro display screen and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710931A (en) * 2005-07-27 2005-12-21 华亚微电子(上海)有限公司 Picture colour controlling method and system
CN103514588A (en) * 2013-10-10 2014-01-15 广东威创视讯科技股份有限公司 Image enhancement method and system
CN107635124A (en) * 2017-10-31 2018-01-26 广东欧珀移动通信有限公司 White balancing treatment method, device and the equipment of face shooting
CN108124139A (en) * 2016-11-28 2018-06-05 深圳市中兴微电子技术有限公司 A kind of pixel processing method and processing device
WO2019002825A1 (en) * 2017-06-30 2019-01-03 Sony Interactive Entertainment Inc. Content modification device and method
CN109218695A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Video image enhancing method, device, analysis system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710931A (en) * 2005-07-27 2005-12-21 华亚微电子(上海)有限公司 Picture colour controlling method and system
CN103514588A (en) * 2013-10-10 2014-01-15 广东威创视讯科技股份有限公司 Image enhancement method and system
CN108124139A (en) * 2016-11-28 2018-06-05 深圳市中兴微电子技术有限公司 A kind of pixel processing method and processing device
WO2019002825A1 (en) * 2017-06-30 2019-01-03 Sony Interactive Entertainment Inc. Content modification device and method
CN109218695A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Video image enhancing method, device, analysis system and storage medium
CN107635124A (en) * 2017-10-31 2018-01-26 广东欧珀移动通信有限公司 White balancing treatment method, device and the equipment of face shooting

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TIAN YL ET AL: "《Resolution enhancement in single depth map and aligned image》", 《2016 IEEE WACV》 *
任洁: "《 彩色图像增强算法的研究与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
钟国舜等: "《基于图像传感器的图像画质增强算法研究》", 《半导体光电》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112396559A (en) * 2019-08-19 2021-02-23 王艳苓 Live broadcast picture orientation beauty platform
CN113034412A (en) * 2021-02-25 2021-06-25 北京达佳互联信息技术有限公司 Video processing method and device
CN113034412B (en) * 2021-02-25 2024-04-19 北京达佳互联信息技术有限公司 Video processing method and device
CN113038093A (en) * 2021-03-26 2021-06-25 华东理工大学 System, method, device, processor and storage medium for realizing video image flicker suppression processing based on moving object detection
CN113487513A (en) * 2021-07-20 2021-10-08 浙江大华技术股份有限公司 Picture brightness adjusting method and adjusting device and storage medium thereof
CN114972124A (en) * 2022-07-29 2022-08-30 自然资源部第三地理信息制图院 Remote sensing image brightness self-adaptive equalization method and system
CN115547230A (en) * 2022-11-23 2022-12-30 南京芯视元电子有限公司 Video data display processing method and device, micro display screen and storage medium

Also Published As

Publication number Publication date
CN109978777B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN109978777A (en) Brightness of image adjusting method and device
US20200242409A1 (en) Method, device and terminal for generating training data
CN107016415B (en) A kind of color image Color Semantic classification method based on full convolutional network
Mittelstädt et al. Methods for compensating contrast effects in information visualization
Ma et al. Shadow detection of moving objects based on multisource information in internet of things
CN106165404B (en) The system and method for supporting interaction and the cooperation of augmented reality
CN108305256B (en) Video keying processing method, processing unit and computer readable storage medium
CN110136166A (en) A kind of automatic tracking method of multichannel picture
CN104504722B (en) Method for correcting image colors through gray points
CN104636759A (en) Method for obtaining picture recommending filter information and picture filter information recommending system
Smith et al. Beyond tone mapping: Enhanced depiction of tone mapped HDR images
Krasula et al. Preference of experience in image tone-mapping: Dataset and framework for objective measures comparison
CN110111347A (en) Logos extracting method, device and storage medium
WO2023005743A1 (en) Image processing method and apparatus, computer device, storage medium, and computer program product
CN112534243A (en) Inspection apparatus and method
CN106951891A (en) Spot detection method and apparatus
Sari et al. Automatic food leftover estimation in tray box using image segmentation
CN109982059A (en) The estimation of illumination coloration in automatic white balance
Zhang et al. A retina inspired model for high dynamic range image rendering
Voronina et al. The quaternion-based anisotropic gradient for the color images
CN116959381A (en) Image enhancement display method, display device and electronic device
CN115496759B (en) Dust detection method and device and storage medium
Xia Saliency-guided color transfer between images
CN110555799A (en) Method and apparatus for processing video
Reinhard Tone reproduction and color appearance modeling: Two sides of the same coin?

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
GR01 Patent grant
GR01 Patent grant