Method and device for drawing annotation box and electronic equipment
The invention discloses a method and device for drawing a labeling box and electronic equipment, and the method comprises the steps: responding to a picture amplification instruction, and carrying out the amplification operation of a picture based on an amplification parameter corresponding to the p...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and device for drawing a labeling box and electronic equipment, and the method comprises the steps: responding to a picture amplification instruction, and carrying out the amplification operation of a picture based on an amplification parameter corresponding to the picture amplification instruction; determining a first annotation box located in a first area on a canvas used for displaying the picture before the picture is magnified; and drawing the first annotation box based on the coordinate set of the first annotation box after the picture is amplified. Therefore, the problem that in the existing annotation box rendering process, the annotation box outside the visible area can be rendered, and rendering overhead can be increased is solved.
本申请公开了一种绘制标注框的方法、装置、及电子设备,该方法包括:响应图片放大指令,基于图片放大指令对应的放大参数,对图片进行放大操作;确定在放大图片前位于用于显示图片的画布上的第一区域中的第一标注框;基于放大图片后的第一标注框的坐标集合,对第一标注框进行绘制。以此解决现有在渲染标注框的过程中,会对可视区域之外的标注框进行渲染,会增加渲染开销的问题。 |
---|