Recognition method and apparatus, and electronic device
AssigneeVivo Mobile Communication Co., Ltd.
InventorYimin Li
Life of this patent
Estimating the term…
Abstract
A recognition method and apparatus, and an electronic device are provided. The recognition method includes: adjusting shooting parameters of a camera in a case that a collected first image includes a light reflecting region, where the shooting parameters include at least one of an aperture and a focus; collecting a second image according to adjusted shooting parameters; and recognizing the target image to obtain a corresponding recognition result, where the target image includes the second image, or the target image is obtained based on the first image and the second image.
Claims15
A recognition method, performed by an electronic device comprising a camera, comprising:
- shooting, by the camera, a first image of a target object;
- determining a clear region and an unclear region of the first image, the unclear region of the first image comprising a light reflecting region;
- calculating new physical shooting parameters of the camera to remove or reduce light reflection of feature information corresponding to the light reflecting region, wherein the physical shooting parameters comprise at least one of an aperture or a focus of the camera;
- reconfiguring the camera according to the new physical shooting parameters, and shooting, by the camera, a second image corresponding to the unclear region of the first image, wherein the second image has removed or reduced light reflection relative to the unclear region of the first image;
- merging the second image with the first image to obtain a target image having removed or reduced light reflection of the feature information;
- recognizing the target image to obtain a corresponding recognition result;
- and
- displaying the recognition result along with the target image on a display panel.
An electronic device, comprising:
- a camera;
- a memory storing computer-readable instructions;
- and
- a processor coupled to the memory and configured to execute the computer-readable instructions, wherein the computer-readable instructions, when executed by the processor, cause the processor to perform operations comprising:
- obtaining a first image of a target object shot by the camera;
- determining a clear region and an unclear region of the first image, the unclear region of the first image comprising a light reflecting region;
- calculating new physical shooting parameters of the camera to remove or reduce light reflection of feature information corresponding to the light reflecting region, wherein the physical shooting parameters comprise at least one of an aperture or a focus of the camera;
- reconfiguring the camera according to the new physical shooting parameters, and obtaining a second image shot by the camera and corresponding to the unclear region of the first image, wherein the second image has removed or reduced light reflection relative to the unclear region of the first image;
- merging the second image with the first image to obtain a target image having removed or reduced light reflection of the feature information;
- recognizing the target image to obtain a corresponding recognition result;
- and
- displaying the recognition result along with the target image on a display panel.
A non-transitory computer-readable medium, storing instructions that, when executed by a processor of an electronic device comprising a camera, cause the processor to perform operations comprising:
- obtaining a first image of a target object by the camera;
- determining a clear region and an unclear region of the first image, the unclear region of the first image comprising a light reflecting region;
- calculating new physical shooting parameters of the camera to remove or reduce light reflection of feature information corresponding to the light reflecting region, wherein the physical shooting parameters comprise at least one of an aperture or a focus of the camera;
- reconfiguring the camera according to the new physical shooting parameters, and obtaining a second image shot by the camera and corresponding to the unclear region of the first image, wherein the second image has removed or reduced light reflection relative to the unclear region of the first image;
- merging the second image with the first image to obtain a target image having removed or reduced light reflection of the feature information;
- recognizing the target image to obtain a corresponding recognition result;
- and
- displaying the recognition result along with the target image on a display panel.
Dependencies are inferred from the claim text.