CPC G06V 10/457 (2022.01) [G06V 20/695 (2022.01); G06V 2201/03 (2022.01)] | 18 Claims |
1. An image processing device comprising:
a processor, and
a memory containing instructions which, when executed by the processor, cause the processor to perform the following:
a pixel group setting process of obtaining an image data of a first image which shows a target object including a linear portion from an imaging device, and of setting a plurality of pixel groups including a first pixel group and a second pixel group, which are not connected to each other, after removing a pixel corresponding to a cross from a pixel constituting a pixel of the first image when setting a plurality of pixel groups corresponding to the first image;
a pair setting process of performing setting of a pair of the first pixel group and the second pixel group including a pixel within a predetermined range from the first pixel group, among the plurality of pixel groups, in order to calculate a connecting degree of the second pixel group with respect to the first pixel group; and
a calculation process of calculating the connecting degree of the pair set by the pair setting process,
wherein the predetermined range is a search range set on the basis of a first distance between the first pixel group and the second pixel group, or a search range set on the basis of a first angle formed between a first line segment corresponding to the first pixel group and a second line segment corresponding to the second pixel group, and
the calculation process calculates the first distance or the first angle, and calculates the connecting degree using the first distance or the first angle.
|