发明名称 Backlight detection method and device
摘要 A backlight detection method and device, and the method includes acquiring a brightness value of each image block in a to-be-checked image, determining a brightness relationship between the adjacent image blocks according to the brightness value of each image block; and determining a dark region and a bright region in the to-be-checked image according to the brightness relationship between the adjacent image blocks, and determining whether the to-be-checked image is a backlight scenario according to the dark region and the bright region. The backlight detection method and device provided by the embodiments of the present invention can improve accuracy of backlight detection.
申请公布号 US9390475(B2) 申请公布日期 2016.07.12
申请号 US201414566020 申请日期 2014.12.10
申请人 Huawei Device Co., Ltd. 发明人 Zhou Hua;Luo Wei;Deng Bin;Du Cheng
分类号 G06K9/40;G06T5/00;H04N5/235;G06T7/00 主分类号 G06K9/40
代理机构 Conley Rose, P.C. 代理人 Conley Rose, P.C. ;Rodolph Grant
主权项 1. A backlight detection method performed by a device with a camera, comprising: acquiring a brightness value of each image block in a to-be-checked image; determining a brightness relationship between the adjacent image blocks according to the brightness value of each image block; determining a dark region and a bright region in the to-be-checked image according to the brightness relationship between the adjacent image blocks; and determining whether the to-be-checked image is a backlight scenario according to the dark region and the bright region, wherein the to-be-checked image comprises M rows and N columns of image blocks, wherein both M and N are positive integers, wherein determining the brightness relationship between the adjacent image blocks according to the brightness value of each image block comprises determining the brightness relationship between any two adjacent image blocks in each row or each column of the to-be-checked image according to a magnitude relationship between a brightness value difference and a first preset brightness threshold, wherein the brightness value difference is a difference between the any two adjacent image blocks in each row or each column of the to-be-checked image, and wherein determining the dark region and the bright region in the to-be-checked image according to the brightness relationship between the adjacent image blocks comprises: determining that the image block with a smaller brightness value is the dark region when the brightness of one image block of the any two adjacent image blocks is less than the brightness of the other image block of the any two adjacent image blocks and the brightness value of the image block with the smaller brightness value is less than a second preset brightness threshold;determining that the image block with the smaller brightness value is a bright-dark transition region when the brightness of one image block of the any two adjacent image blocks is less than the brightness of the other image block and the brightness value of the image block with the smaller brightness value is greater than or equal to the second preset brightness threshold;determining that the image block with a larger brightness value is the bright region when the brightness of one image block of the any two adjacent image blocks is greater than the brightness of the other image block of the any two adjacent image blocks and the brightness value of the image block with a larger brightness value is greater than a third preset brightness threshold; anddetermining that the image block with the larger brightness value is the bright-dark transition region when the brightness of one image block of the any two adjacent image blocks is greater than the brightness of the other image block of the any two adjacent image blocks and the brightness value of the image block with the larger brightness value is less than or equal to the third preset brightness value.
地址 Shenzhen CN