INFORMATION PROCESSING APPARATUS AND NON-TRANSITORY COMPUTER READABLE MEDIUM STORING PROGRAM
An information processing apparatus includes an extraction unit that extracts object information from an image including an object to be read having a predetermined size; a cutting unit that cuts out a first area including at least a part of the object to be read from the image; and a changing unit that changes the first area such that an area having a background color different from a background color of the image is included, from the first area, when the first area cut out by the cutting unit has a size different from the predetermined size.
1 . An information processing apparatus comprising:
an extraction unit that extracts object information from an image including an object to be read having a predetermined size;
a cutting unit that cuts out a first area including at least a part of the object to be read from the image; and
a changing unit that changes the first area such that an area having a background color different from a background color of the image is included, from the first area, when the first area cut out by the cutting unit has a size different from the predetermined size.
2 . The information processing apparatus according to claim 1 ,
wherein the changing unit changes the first area such that the object information is included, with the first area as a base point.
3 . The information processing apparatus according to claim 1 ,
wherein the changing unit expands the first area such that the object information is included, with the first area as a base point, when the first area has a size smaller than the predetermined size.
4 . The information processing apparatus according to claim 2 ,
wherein the changing unit expands the first area such that the object information is included, with the first area as a base point, when the first area has a size smaller than the predetermined size.
5 . The information processing apparatus according to claim 3 ,
wherein in a case where the image includes a plurality of the objects to be read,
the cutting unit cuts out a plurality of the first areas for each of the plurality of objects to be read, and
when some of the plurality of first areas have sizes different from the predetermined size, the changing unit respectively expands the some of the plurality of first areas such that areas respectively expanded from the some of the plurality of first areas do not overlap each other.
6 . The information processing apparatus according to claim 4 ,
wherein in a case where the image includes a plurality of the objects to be read,
the cutting unit cuts out a plurality of the first areas for each of the plurality of objects to be read, and
when some of the plurality of first areas have sizes different from the predetermined size, the changing unit respectively expands the some of the plurality of first areas such that areas respectively expanded from the some of the plurality of first areas do not overlap each other.
7 . The information processing apparatus according to claim 5 ,
wherein the changing unit respectively expands the some of the plurality of first areas such that the object information, which is located in a predetermined direction with respect to each of the some of the plurality of first areas in the image, is included.
8 . The information processing apparatus according to claim 6 ,
wherein the changing unit respectively expands the some of the plurality of first areas such that the object information, which is located in a predetermined direction with respect to each of the some of the plurality of first areas in the image, is included.
9 . The information processing apparatus according to claim 1 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
10 . The information processing apparatus according to claim 2 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
11 . The information processing apparatus according to claim 3 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
12 . The information processing apparatus according to claim 4 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
13 . The information processing apparatus according to claim 5 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
14 . The information processing apparatus according to claim 6 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
15 . The information processing apparatus according to claim 7 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
16 . The information processing apparatus according to claim 8 ,
wherein the changing unit reduces the first area to a second area such that the object information is included, with the first area as a base point, when the first area has a size larger than the predetermined size.
17 . The information processing apparatus according to claim 9 ,
wherein the changing unit reduces the third area to a fourth area such that the object information is included, with the third area as a base point, when a third area obtained by excluding the second area from the first area before the reduction has a size larger than the predetermined size.
18 . The information processing apparatus according to claim 10 ,
wherein the changing unit reduces the third area to a fourth area such that the object information is included, with the third area as a base point, when a third area obtained by excluding the second area from the first area before the reduction has a size larger than the predetermined size.
19 . The information processing apparatus according to claim 11 ,
wherein the changing unit reduces the third area to a fourth area such that the object information is included, with the third area as a base point, when a third area obtained by excluding the second area from the first area before the reduction has a size larger than the predetermined size.
20 . A non-transitory computer readable medium storing a program causing a computer to function as:
an extraction unit that extracts object information from an image including an object to be read having a predetermined size;
a cutting unit that cuts out a first area including at least a part of the object to be read from the image; and
a changing unit that changes the first area such that an area having a background color different from a background color of the image is included, from the first area, when the first area cut out by the cutting unit has a size different from the predetermined size.