Method for optimizing the image processing of web videos, electronic device, and storage medium applying the method
AssigneeHon Hai Precision Industry Co., Ltd.
InventorYin-Chung Leung
Life of this patent
Estimating the term…
Abstract
In a method for optimizing the image processing of web videos, information of an image frame in a web video is obtained. A canvas element based on the information of the image is created, and a canvas element is drawn based on the information of the image. Attached recognition information is obtained. A block element based on the attached information is created, and the attached information is set into the block element. The canvas element and the block element are composed and stacked on a web page. The canvas element and the block element are displayed in the web page. An electronic device, and a non-transitory computer readable storage medium applying the method are also provided.
Claims15
A method for optimizing an image process of web videos used in an electronic device, the electronic device comprises a non-transitory storage medium with program codes, which implements the method when executed by a processor, the method comprises:
- obtaining information of an image in a web video;
- creating a canvas element based on the information of the image and drawing a canvas context based on the information of the image;
- obtaining attached recognition information of the image, extracting the attached information, selecting and converting a part of the extracted attached recognition information into displayable information, creating a block element based on the displayable information, and setting the displayable information into the block element;
- the part of the extracted attached recognition information is a size and coordinates of a bounding box of a filmed object in the image required to be sampled for defect labeling;
- composing a web page and stacking the block element on the web page;
- and
- displaying the web video and the displayable information on the web page.
An electronic device comprises:
- a storage;
- and
- a processor,
- wherein the storage stores computer programs, and
- the processor executes the computer programs to implement the following:
- obtaining information of an image in a web video, creating a canvas element based on the information of the image, and drawing a canvas context based on the information of the image;
- obtaining attached recognition information of the image, extracting the attached information, selecting and converting a part of the extracted attached recognition information into displayable information, creating a block element based on the displayable information, and setting the displayable information into the block element;
- the part of the extracted attached recognition information is a size and coordinates of a bounding box of a filmed object in the image required to be sampled for defect labeling;
- composing a web page and stacking the block element on the web page;
- and
- displaying the web video and the displayable information on the web page.
A non-transitory computer readable storage medium, the non-transitory computer readable storage medium stores computer programs, and the computer programs are executed by at least one processor to implement the following steps:
- obtaining information of an image in a web video, creating a canvas element based on the information of the image, and drawing a canvas context based on the information of the image;
- obtaining attached recognition information of the image, extracting the attached information, selecting and converting a part of the extracted attached recognition information into displayable information, creating a block element based on the displayable information, and setting the displayable information into the block element;
- the part of the extracted attached recognition information is a size and coordinates of a bounding box of a filmed object in the image required to be sampled for defect labeling;
- composing a web page and stacking the block element on the web page;
- and
- displaying the web video and the displayable information on the web page.
Dependencies are inferred from the claim text.