Electronic device and method for selecting region of interest in image
Disclosed are an electronic device and a method for selecting a region of interest in an image. The method includes the following steps: receiving an image; using the image to obtain a plurality of regions of interest, wherein each of the plurality of regions of interest corresponds to an object danger level value; and using the object danger level value to select a first region of interest from the plurality of regions of interest.
1 . An electronic device for selecting regions of interest (ROIs) in an image, comprising:
a transceiver; and
a processor coupled to the transceiver and configured to:
receive images through the transceiver;
obtain a plurality of ROIs by using the images, wherein each of the plurality of ROIs corresponds to an object danger level value;
use the object danger level value to select a first ROI from the plurality of ROIs; and
use a maximum throughput and a number of frames per second to determine a maximum data size value per frame.
2 . The electronic device of claim 1 , wherein the plurality of ROIs comprises the first ROI and a plurality of other ROIs, and the object danger level value corresponding to the first ROI is greater than the object danger level value corresponding to each of the plurality of other ROIs.
3 . The electronic device of claim 1 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein a sum of a minimum resolution data size value of a single image without ROI in the image and the transmission bandwidth value of the first ROI is less than or equal to the maximum data size value per frame.
4 . The electronic device of claim 1 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein a sum of a minimum resolution data size value of a single image without ROI in the image and the transmission bandwidth value of the first ROI is less than or equal to the maximum data size value per frame.
5 . The electronic device of claim 1 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, and the plurality of ROIs comprise the first ROI and a plurality of other ROIs, wherein the processor is further configured to:
select a second ROI from the plurality of other ROIs, wherein the second ROI is different from the first ROI, wherein the second ROI corresponds to a transmission bandwidth value of the second ROI, and a sum of a minimum resolution data size value of a single image without ROI in the image, the transmission bandwidth value of the first ROI, and the transmission bandwidth value of the second ROI is less than or equal to the maximum data size value per frame.
6 . The electronic device of claim 1 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein the processor is further configured to:
when a sum of the transmission bandwidth value of the first ROI and a minimum resolution data size value of a single image without ROI in the image is greater than the maximum data size value per frame, adjust the number of frames per second based on the maximum throughput, the transmission bandwidth value of the first ROI, and the minimum resolution data size value of the single image without ROI.
7 . The electronic device of claim 1 , wherein the object danger level value is Time to Collision (TTC).
8 . A method for selecting ROIs in an image, comprising:
receiving images;
obtaining a plurality of ROIs by using the images, wherein each of the plurality of ROIs corresponds to an object danger level value;
selecting a first ROI from the plurality of ROIs by using the object danger level value; and
determining a maximum data size value per frame by using a maximum throughput and a number of frames per second.
9 . The method of claim 8 , wherein the plurality of ROIs comprise the first ROI and a plurality of other ROIs, and the object danger level value corresponding to the first ROI is greater than the object danger level value corresponding to each of the plurality of other ROIs.
10 . The method of claim 8 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein a sum of a minimum resolution data size value of a single image without ROI in the image and the transmission bandwidth value of the first ROI is less than or equal to the maximum data size value per frame.
11 . The method of claim 8 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein a sum of a minimum resolution data size value of a single image without ROI in the image and the transmission bandwidth value of the first ROI is less than or equal to the maximum data size value per frame.
12 . The method of claim 8 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, and the plurality of ROIs comprise the first ROI and a plurality of other ROIs, wherein the method further comprises:
selecting a second ROI from the plurality of other ROIs, wherein the second ROI is different from the first ROI, wherein the second ROI corresponds to a transmission bandwidth value of the second ROI, and a sum of a minimum resolution data size value of a single image without ROI in the image, the transmission bandwidth value of the first ROI, and the transmission bandwidth value of the second ROI is less than or equal to the maximum data size value per frame.
13 . The method of claim 8 , wherein the first ROI corresponds to a transmission bandwidth value of the first ROI, wherein the method further comprises:
when a sum of the transmission bandwidth value of the first ROI and a minimum resolution data size value of a single image without ROI in the image is greater than the maximum data size value per frame, adjusting the number of frames per second based on the maximum throughput, the transmission bandwidth value of the first ROI, and the minimum resolution data size value of the single image without ROI.
14 . The method of claim 8 , wherein the object danger level value is TTC.