Image processing apparatus, control apparatus, image processing method, and storage medium
An image processing apparatus includes a memory storing instructions, and a processor configured to execute the instructions to acquire information about an optical system included in an image pickup apparatus configured to capture an image, acquire a change amount in the information about the optical system in a peripheral area of a target pixel in the image based on the information about the optical system, and acquire, based on the change amount, information about recognition accuracy in the peripheral area by a recognition apparatus configured to perform image recognition.
1 . An image processing apparatus comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
(1) acquire information about an optical system included in an image pickup apparatus configured to capture an image,
(2) acquire a change amount in the information about the optical system in a peripheral area of a target pixel in the image based on the information about the optical system,
(3) acquire, based on the change amount, information about recognition accuracy in the peripheral area by a recognition apparatus configured to perform image recognition,
(4) cause the recognition apparatus to use the target pixel in a case where the information about the recognition accuracy satisfies a predetermined condition, and
(5) prohibit the recognition apparatus from using the target pixel in a case where the information about the recognition accuracy does not satisfy the predetermined condition.
2 . The image processing apparatus according to claim 1 , wherein the processor is configured to acquire the information about the recognition accuracy using information about a relationship between the change amount and the recognition accuracy.
3 . The image processing apparatus according to claim 1 , wherein in the case where the information about the recognition accuracy satisfies the predetermined condition, the processor is configured to cause the recognition apparatus to use the target pixel without performing predetermined image correction processing.
4 . The image processing apparatus according to claim 1 , wherein the processor is configured to cut, from the image, an area including the target pixel to be used by the recognition apparatus.
5 . The image processing apparatus according to claim 1 , wherein the processor is configured to fill an area of the image that includes at least a part of the target pixel not to be used by the recognition apparatus.
6 . The image processing apparatus according to claim 1 , wherein the processor is configured to associate a result of image recognition performed using the image by the recognition apparatus with the information about the recognition accuracy.
7 . The image processing apparatus according to claim 6 , wherein the processor is configured to:
determine to use the result of the image recognition performed by the recognition apparatus using the peripheral area in a case where the information about the recognition accuracy satisfies a predetermined condition, and
determine not to use the result of the image recognition performed using the peripheral area by the recognition apparatus in a case where the information about the recognition accuracy does not satisfy the predetermined condition.
8 . The image processing apparatus according to claim 6 , wherein the processor is configured to include the information about the recognition accuracy in the result of the image recognition performed using the image by the recognition apparatus.
9 . The image processing apparatus according to claim 6 , wherein the memory stores information that associates the result of the image recognition acquired at a first timing with the information about the recognition accuracy, and information that associates the result of the image recognition acquired at a second timing later than the first timing with the information on the recognition accuracy.
10 . The image processing apparatus according to claim 1 , wherein the number of pixels included in the peripheral area is fixed.
11 . The image processing apparatus according to claim 1 , wherein the number of pixels included in the peripheral area changes according to an angle of view of the image pickup apparatus.
12 . The image processing apparatus according to claim 1 , wherein the peripheral area is set based on a result of image recognition performed by the recognition apparatus using the image.
13 . A control apparatus comprising:
the image processing apparatus according to claim 1 ; and
the recognition apparatus configured to perform image recognition.
14 . An image processing method comprising the steps of:
acquiring information about an optical system included in an image pickup apparatus configured to capture an image;
acquiring a change amount in the information about the optical system in a peripheral area of a target pixel in the image based on the information about the optical system; and
acquiring, based on the change amount, information about recognition accuracy in the peripheral area by a recognition apparatus configured to perform image recognition;
causing the recognition apparatus to use the target pixel in a case where the information about the recognition accuracy satisfies a predetermined condition; and
prohibiting the recognition apparatus from using the target pixel in a case where the information about the recognition accuracy does not satisfy the predetermined condition.
15 . A non-transitory computer-readable medium storing a program that causes a computer to execute the image processing method according to claim 14 .