Image display method and apparatus, electronic device, readable storage medium, and chip
View Patent ↗The embodiments of the present disclosure provide an image display method and apparatus, an electronic device, a readable storage medium, and a chip, and the image display method includes: acquiring panorama information; determining position information of a display screen in the panorama information; determining a screen contour region of the display screen according to the position information, and determining an occlusion region that does not belong to the display screen in the screen contour region; determining a display region according to the occlusion region; and displaying preset image information in the display region.
1 . An electronic device, comprising a processor, a memory, and programs or instructions stored on the memory and allowed to be executed by the processor, wherein when the programs or instructions are executed by the processor, an image display method is implemented, and the image display method comprises:
acquiring panorama information, a display screen existing in the panorama information;
determining position information of the display screen in the panorama information;
determining a screen contour region of the display screen according to the position information, and determining an occlusion region that does not belong to the display screen in the screen contour region;
determining a display region according to the occlusion region; and
displaying preset image information in the display region,
wherein determining position information of the display screen in the panorama information, comprises: converting the panorama information into planar six-view information.
2 . The electronic device according to claim 1 , wherein determining the position information of the display screen in the panorama information, comprises:
determining coordinate information of a plurality of vertices of the display screen in the planar six-view information; and
determining the screen contour region of the display screen according to the position information, comprises:
determining the screen contour region according to the coordinate information of the plurality of vertices.
3 . The image display method according to claim 2 , wherein determining the occlusion region that does not belong to the display screen in the screen contour region, comprises:
determining a pixel region and a non-pixel region in the screen contour region; and
determining that the non-pixel region is the occlusion region of the display screen.
4 . The image display method according to claim 1 , wherein determining the display region according to the occlusion region, comprises:
determining an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determining that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determining that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determining that the display region is a region where the screen contour region removes the occlusion region.
5 . An image display apparatus, comprising:
an acquisition module, configured to acquire panorama information, wherein a display screen exists in the panorama information;
a position determination module, configured to determine position information of the display screen in the panorama information;
a region determination module, configured to determine a screen contour region of the display screen according to the position information, and determine an occlusion region that does not belong to the display screen in the screen contour region; and
a display module, configured to determine a display region according to the occlusion region, and display preset image information in the display region, wherein
the position determination module is further configured to convert the panorama information into planar six-view information.
6 . The image display apparatus according to claim 5 ,
wherein the position determination module is further configured to determine coordinate information of a plurality of vertices of the display screen in the planar six-view information; and
the region determination module is further configured to determine the screen contour region according to the coordinate information of the plurality of vertices.
7 . The image display apparatus according to claim 6 , wherein the region determination module is further configured to determine a pixel region and a non-pixel region in the screen contour region, and determine that the non-pixel region is the occlusion region of the display screen.
8 . The image display apparatus according to claim 6 , wherein the display module is further configured to:
determine an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determine that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determine that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determine that the display region is a region where the screen contour region removes the occlusion region.
9 . The image display apparatus according to claim 7 , wherein the display module is further configured to:
determine an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determine that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determine that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determine that the display region is a region where the screen contour region removes the occlusion region.
10 . The image display apparatus according to claim 5 , wherein the display module is further configured to:
determine an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determine that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determine that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determine that the display region is a region where the screen contour region removes the occlusion region.
11 . An image display method, comprising:
acquiring panorama information, a display screen existing in the panorama information;
determining position information of the display screen in the panorama information;
determining a screen contour region of the display screen according to the position information, and determining an occlusion region that does not belong to the display screen in the screen contour region;
determining a display region according to the occlusion region; and
displaying preset image information in the display region,
wherein determining the position information of the display screen in the panorama information, comprises: converting the panorama information into planar six-view information.
12 . The image display method according to claim 11 , wherein determining the position information of the display screen in the panorama information, comprises:
determining coordinate information of a plurality of vertices of the display screen in the planar six-view information; and
determining the screen contour region of the display screen according to the position information, comprises:
determining the screen contour region according to the coordinate information of the plurality of vertices.
13 . The image display method according to claim 12 , wherein determining the occlusion region that does not belong to the display screen in the screen contour region, comprises:
determining a pixel region and a non-pixel region in the screen contour region; and
determining that the non-pixel region is the occlusion region of the display screen.
14 . The image display method according to claim 13 , wherein determining the display region according to the occlusion region, comprises:
determining an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determining that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determining that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determining that the display region is a region where the screen contour region removes the occlusion region.
15 . A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is configured to execute programs or instructions to implement the image display method according to claim 13 .
16 . The image display method according to claim 12 , wherein determining the display region according to the occlusion region, comprises:
determining an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determining that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determining that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determining that the display region is a region where the screen contour region removes the occlusion region.
17 . A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is configured to execute programs or instructions to implement the image display method according to claim 12 .
18 . The image display method according to claim 11 , wherein determining the display region according to the occlusion region, comprises:
determining an area ratio of the occlusion region to the screen contour region;
in a case that the area ratio is smaller than a lower limiting value of a preset proportion range, determining that the display region is a region corresponding to the screen contour region;
in a case that the area ratio is larger than an upper limiting value of the preset proportion range, determining that the display region is blank; and
in a case that the area ratio is within the preset proportion range, determining that the display region is a region where the screen contour region removes the occlusion region.
19 . A non-transitory readable storage medium, wherein programs or instructions are stored on the non-transitory readable storage medium, and when the programs or instructions are executed by a processor, the image display method according to claim 1 is implemented.
20 . A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is configured to execute programs or instructions to implement the image display method according to claim 11 .