CN113485705A - QML Rectangle component-based frame selection method, device, equipment and storage medium - Google Patents

QML Rectangle component-based frame selection method, device, equipment and storage medium Download PDF

Info

Publication number
CN113485705A
CN113485705A CN202110735711.3A CN202110735711A CN113485705A CN 113485705 A CN113485705 A CN 113485705A CN 202110735711 A CN202110735711 A CN 202110735711A CN 113485705 A CN113485705 A CN 113485705A
Authority
CN
China
Prior art keywords
frame
component
transparent
width
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110735711.3A
Other languages
Chinese (zh)
Other versions
CN113485705B (en
Inventor
罗钟慧
李盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruan Niu Technology Group Co ltd
Original Assignee
Afirstsoft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Afirstsoft Co Ltd filed Critical Afirstsoft Co Ltd
Priority to CN202110735711.3A priority Critical patent/CN113485705B/en
Publication of CN113485705A publication Critical patent/CN113485705A/en
Application granted granted Critical
Publication of CN113485705B publication Critical patent/CN113485705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the field of component application, and discloses a frame selection method, a device, equipment and a storage medium based on a QML Rectangle component. The method comprises the following steps: receiving a setting instruction of a transparent frame in a QML Rectangle component, and reading the component length and the component width of the QML Rectangle component, wherein the setting instruction comprises the following steps: transparent frame coordinates, transparent frame length and transparent frame width; substituting the component length, the component width, the transparent frame coordinate, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm, and calculating to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the transparencies of the first edge frame, the second edge frame, the third edge frame and the fourth edge are not zero; and performing combined processing on the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.

Description

QML Rectangle component-based frame selection method, device, equipment and storage medium
Technical Field
The invention relates to the field of component application, in particular to a frame selection method, a frame selection device, frame selection equipment and a storage medium based on a QML Rectangle component.
Background
In the context of QML, when the prior art wants to implement a video frame through component technology, it is impossible to implement a display effect in which a frame in the video frame has a transparent display effect, and an unselected area is not opaque. The traditional method for layer overlapping cannot be realized because the transparency of the selected frame layer after the layer overlapping is larger than or equal to that of the background layer in view. Similar to the placement of another piece of glass on a rectangular area of brown glass, the transparent frame effect cannot be achieved.
However, in the QML environment, it is sometimes necessary to process an image in a video state, and to perform targeted transparent display under a selected frame. The prior art cannot realize the function, so that a good display effect cannot be generated, and the display effect of the transparent frame cannot be adjusted according to new setting data. Therefore, it is required to use a technical effect that the shape of the box can be freely adjusted and transparency can be displayed in the QML environment.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the transparent frame cannot be selected and displayed under the QML environment.
The invention provides a frame selection method based on a QML Rectangle component, which comprises the following steps:
receiving a setting instruction of a transparent frame in a QML Rectangle component, and reading the component length and the component width of the QML Rectangle component, wherein the setting instruction comprises the following steps: transparent frame coordinates, transparent frame length and transparent frame width;
substituting the component length, the component width, the transparent frame coordinate, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm, and calculating to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the transparencies of the first edge frame, the second edge frame, the third edge frame and the fourth edge are not zero;
and performing combined processing on the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.
Optionally, in a first implementation manner of the first aspect of the present invention, the first edge frame includes: a first coordinate, a first length, a first width, the second edge frame comprising: a second coordinate, a second length, a second width, the third edge frame comprising: a third coordinate, a third length, a third width, the fourth edge frame comprising: a fourth coordinate, a fourth length, a fourth width, the transparent frame coordinate comprising: transparent abscissa, transparent ordinate, will the subassembly length the subassembly width transparent frame coordinate transparent frame length transparent frame width substitutes among the preset edge frame analysis algorithm, and the calculation obtains first edge frame, second edge frame, third edge frame, fourth edge frame and includes:
reading origin coordinates of the QML Rectangle component, wherein the origin coordinates comprise: origin abscissa;
setting the origin coordinate as a first coordinate, setting the component width as a first width, and setting the transparent frame length as a first length, and generating a first edge frame;
setting the origin abscissa as the abscissa of a second coordinate, setting the transparent ordinate as the ordinate of the second coordinate, setting the size of the transparent abscissa as a second width, and setting the length of the transparent frame as a second length to generate a second edge frame;
adding the size of the transparent abscissa to the size of the width of the transparent frame to obtain a transverse numerical value, setting the transverse numerical value as the abscissa of a third coordinate, setting the transparent ordinate as the ordinate of the third coordinate, setting the difference value between the width of the component and the transverse numerical value as a third width, setting the length of the transparent frame as a third length, and generating a third edge frame;
and adding the size of the transparent ordinate to the size of the length of the transparent frame to obtain a longitudinal numerical value, setting the longitudinal numerical value as the ordinate of a fourth coordinate, setting the origin abscissa as the abscissa of the fourth coordinate, setting the difference value between the length of the component and the longitudinal numerical value as a fourth length, setting the width of the component as a fourth width, and generating a fourth edge frame.
Optionally, in a second implementation manner of the first aspect of the present invention, the adding the size of the transparent abscissa to the size of the width of the transparent frame to obtain a horizontal numerical value includes:
adding the size of the transparent horizontal coordinate to the width of the transparent frame to obtain a horizontal middle numerical value;
judging whether the transverse middle value is smaller than the width of the component or not;
if the width of the component is smaller than the width of the component, determining the transverse middle value as a transverse value;
and if the width of the transparent frame is larger than the width of the component, sending the information of the setting error of the width of the transparent frame to a preset display port.
Optionally, in a third implementation manner of the first aspect of the present invention, the adding the size of the transparent ordinate to the size of the transparent frame length to obtain a vertical value includes:
adding the size of the transparent vertical coordinate to the size of the length of the transparent frame to obtain a longitudinal middle numerical value;
judging whether the longitudinal middle value is smaller than the length of the component or not;
if the length of the component is smaller than the length of the component, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the component, sending the information of the setting error of the length of the transparent frame to a preset display port.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the combining the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame to generate the display frame of the QML Rectangle component includes:
analyzing whether the transverse numerical value is smaller than the width of the component, and analyzing whether the longitudinal numerical value is smaller than the length of the component;
if the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are all smaller than the first edge frame, the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are combined, and a display frame of the QML Rectangle component is generated;
and if not, sending the length and width setting error information of the transparent frame to a preset display port.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the receiving a setting instruction of a transparent frame in a QML Rectangle component, and reading a component length and a component width of the QML Rectangle component includes:
receiving a setting instruction of a transparent frame in the QML Rectangle component;
judging whether the transparent frame coordinate is in a preset coordinate range of the QML Rectangle component or not;
reading the component length and the component width of the QML Rectangle component if the transparent frame coordinate is in the coordinate range.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the combining the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame to generate the display frame of the QML Rectangle component, the method further includes:
and receiving a photographic image, and overlapping the photographic image and the display frame to generate a display image.
The second aspect of the present invention provides a box selecting device based on a QML Rectangle component, including:
a receiving module, configured to receive a setting instruction of a transparent frame in a QML Rectangle component, and read a component length and a component width of the QML Rectangle component, where the setting instruction includes: transparent frame coordinates, transparent frame length and transparent frame width;
a calculating module, configured to substitute the component length, the component width, the transparent frame coordinate, the transparent frame length, and the transparent frame width into a preset edge frame analysis algorithm, and calculate to obtain a first edge frame, a second edge frame, a third edge frame, and a fourth edge frame, where transparency of the first edge frame, the second edge frame, the third edge frame, and the fourth edge is not zero;
and the combination module is used for performing combination processing on the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.
The third aspect of the present invention provides a box selecting device based on a QML Rectangle component, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the QML Rectangle component-based bezel apparatus to perform the QML Rectangle component-based bezel method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the above-described QML Rectangle component-based frame selection method.
In the embodiment of the invention, the single mask layer is divided into 5 grids by using a grid movement principle, the 5 grids are described by using a Rectangle component, and the position and the size of the grids of the mask layer are rendered and drawn in a parameter expression mode to realize a video frame selection effect.
Drawings
FIG. 1 is a diagram of an embodiment of a box selection method based on a QML Rectangle component in the embodiment of the present invention;
FIG. 2 is a diagram illustrating the display effect of the box selection method based on the QML Rectangle component in the embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a QML Rectangle component-based box selection apparatus according to an embodiment of the present invention;
FIG. 4 is a diagram of another embodiment of a QML Rectangle component-based box selection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a box selection device based on a QML Rectangle component in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a frame selection method, a device, equipment and a storage medium based on a QML Rectangle component.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For the convenience of understanding, the following describes a specific process of an embodiment of the present invention, and referring to fig. 1, an embodiment of a box selection method based on a QML Rectangle component in an embodiment of the present invention includes:
101. receiving a setting instruction of a transparent frame in the QML Rectangle component, and reading the component length and the component width of the QML Rectangle component, wherein the setting instruction comprises the following steps: transparent frame coordinates, transparent frame length and transparent frame width;
in this embodiment, the generation of the frame in the Rectangle component can realize the establishment of a frame by giving the coordinates, the length and the width of the frame relative to the parent frame, and the instruction given to the component frame can be given by writing data, and the setting of the whole transparent frame can be realized by touch clicking, so as to realize the display of the transparent frame.
Preferably, step 101 may perform the following steps:
1011. receiving a setting instruction of a transparent frame in the QML Rectangle component;
1012. judging whether the coordinates of the transparent frame are in a preset coordinate range of the QML Rectangle component or not;
1013. if the transparent frame coordinates are in the coordinate range, the component length and component width of the QML Rectangle component are read.
In the 1011-1013 step, a construction instruction of data transmission is received, whether the coordinate of the transparent frame is in the coordinate range or not needs to be checked, and if the coordinate is outside the coordinate range, the transparent frame cannot be constructed, and information of coordinate errors is sent to the preset port. If the set transparent frame coordinate does not fall outside the coordinate range, the basic condition for constructing the transparent frame is determined to be met, and the component length and the component width of the QML Rectangle component are further read.
102. Substituting the component length, the component width, the transparent frame coordinate, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm, and calculating to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the transparencies of the first edge frame, the second edge frame, the third edge frame and the fourth edge are not zero;
in this embodiment, when the transparent coordinate range is confirmed, the transparent frame is generated, and the shape is also fixed because the transparent frame is a rectangle in which one vertex and two sides are confirmed, whereby the transparent frame is initially set and the entire transparent frame is fixed. Based on the length and width of the whole assembly, a first edge frame, a second edge frame, a third edge frame and a fourth edge frame are generated at the edges of the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame have transparency settings when being generated, the transparency settings in the Recttangle are 0-1, 0 represents complete transparency, 1 represents opacity, the settings are marked as "accessibility:", for example, "accessibility: 0.5", the transparency settings of the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are 0.5, and the first edge frame, the second edge frame, the third edge frame and the fourth edge frame can be respectively set to different transparencies.
Preferably, step 102 may be specifically performed by the following steps:
the first edge frame includes: the first coordinate, the first length, the first width, the second edge frame includes: second coordinate, second length, second width, third edge frame includes: third coordinate, third length, third width, fourth edge frame includes: fourth coordinate, fourth length, fourth width, transparent frame coordinate includes: transparent abscissa, transparent ordinate, with subassembly length, subassembly width, transparent frame coordinate, transparent frame length, transparent frame width substitution preset edge frame analysis algorithm in, calculate and obtain first edge frame, second edge frame, third edge frame, fourth edge frame and include:
1021. reading the origin coordinates of the QML Rectangle component, wherein the origin coordinates comprise: origin abscissa;
1022. setting the origin coordinate as a first coordinate, setting the component width as a first width, and setting the transparent frame length as a first length to generate a first edge frame;
1023. setting the origin abscissa as the abscissa of a second coordinate, setting the transparent ordinate as the ordinate of the second coordinate, setting the size of the transparent abscissa as a second width, and setting the length of the transparent frame as a second length to generate a second edge frame;
1024. adding the size of the transparent abscissa and the width of the transparent frame to obtain a transverse numerical value, setting the transverse numerical value as the abscissa of a third coordinate, setting the transparent ordinate as the ordinate of the third coordinate, setting the difference value between the component width and the transverse numerical value as a third width, and setting the length of the transparent frame as a third length to generate a third edge frame;
1025. adding the length of the transparent frame to the size of the transparent ordinate to obtain a longitudinal value, setting the longitudinal value as the ordinate of a fourth coordinate, setting the origin abscissa as the abscissa of the fourth coordinate, setting the difference value between the length of the component and the longitudinal value as the fourth length, and setting the width of the component as the fourth width to generate a fourth edge frame.
In step 1021-; x is 0; y is 0; width is parent.width; height: r5.y, the second edge box can be described as Rectangle { id: r 2; x is 0; y is r5. y; width is r5. x; height: r5.height }, the third bounding box can be described as Rectangle { id: r 3; x is r5.x + r5. width; y is r5. y; width of parent.width- (r5.x + r5. width); height: r5.height }, the fourth edge box can be described as Rectangle { id: r 4; x is 0; y is r5.y + r5. height; width is parent.width; the height is (r5.y + r5.height), wherein, the parent.width is the width of the component, r5.y is the transparent vertical coordinate, r5.x is the transparent horizontal coordinate, r5.height is the width of the transparent frame, r5.height is the length of the transparent frame, and the parent.height is the length of the component.
Preferably, in the 1024 step, "adding the transparent abscissa size to the transparent frame width size to obtain the horizontal numerical value" may further detect whether the transparent frame exceeds the range, and perform the following steps:
10241. adding the size of the transparent horizontal coordinate to the width of the transparent frame to obtain a horizontal middle numerical value;
10242. judging whether the transverse middle value is smaller than the width of the component or not;
10243. if the width of the component is smaller than the width of the component, determining the transverse middle value as a transverse value;
10244. and if the width of the transparent frame is larger than the width of the component, sending the information of setting errors of the width of the transparent frame to a preset display port.
In 10241-10244 step, because it is not known in the coordinate range whether the transparent frame has a transparent frame beyond the range, if the horizontal middle value is larger than the component width, it indicates that the size of the horizontal extension of the transparent frame has exceeded the range, which results in that the third frame cannot be generated, and a specific transparent frame cannot be generated within the component range due to exceeding the limit component range.
Preferably, in the 1025 step, "adding the size of the transparent ordinate to the size of the transparent frame length to obtain the vertical value", the detection may be added on the basis of 10241-10244, and the following steps may also be performed independently:
10251. adding the size of the transparent vertical coordinate to the length of the transparent frame to obtain a longitudinal middle numerical value;
10252. judging whether the longitudinal middle value is smaller than the length of the component or not;
10253. if the length of the component is less than the length of the component, determining the longitudinal middle value as a longitudinal value;
10254. and if the length of the transparent frame is larger than the length of the component, sending the information of the error setting of the length of the transparent frame to a preset display port.
In the 10251-10254 step, mainly when the transparent frame is generated, the length of the transparent frame is determined whether the displayed component is exceeded or not under the condition that the transparent frame coordinate is fixed, and if so, an error is required to be reported. If the range size of the component is not exceeded, a vertical value may be generated, further generating a fourth frame.
103. And combining the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.
In the present embodiment, the display frame already calculated by the QML Rectangle component is displayed in the whole component, as shown in fig. 2, the display frame in the QML Rectangle component is displayed, wherein the 1, 2, 3, and 4 regions are all the display regions of the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame whose transparency is not zero, and the 5 regions are the display regions of the transparent frames.
Preferably, under the 10241-10245 step, the 103 step can perform the following steps:
1031. analyzing whether the transverse numerical value is smaller than the width of the assembly or not and analyzing whether the longitudinal numerical value is smaller than the length of the assembly or not;
1032. if the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are all smaller than the QML component, the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are combined to generate a display frame of the QML component;
1033. and if not, sending the length and width setting error information of the transparent frame to a preset display port.
In the step 1031-. If not, the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame which are calculated previously are arranged and displayed on the basis of the assemblies according to the calculation results.
Further, after the step 103, the following steps may be further performed:
1034. the photographed image is received, and the photographed image is superimposed on the display frame to generate a display image.
In the embodiment, after the display image of the photographic image and the display frame are overlapped, namely the display of the areas 1, 2, 3 and 4 is the opaque display, and the area 5 is the transparent display effect, the original photographic image realizes the display effect of different transparent frames by using the Rectangle component in the QML environment.
In the embodiment of the invention, the single mask layer is divided into 5 grids by using a grid movement principle, the 5 grids are described by using a Rectangle component, and the position and the size of the grids of the mask layer are rendered and drawn in a parameter expression mode to realize a video frame selection effect.
In the above description of the frame selection method based on the QML Rectangle component in the embodiment of the present invention, the following description describes a frame selection apparatus based on the QML Rectangle component in the embodiment of the present invention, please refer to fig. 3, and an embodiment of the frame selection apparatus based on the QML Rectangle component in the embodiment of the present invention includes:
a receiving module 301, configured to receive a setting instruction of a transparent frame in a QML Rectangle component, and read a component length and a component width of the QML Rectangle component, where the setting instruction includes: transparent frame coordinates, transparent frame length and transparent frame width;
a calculating module 302, configured to substitute the component length, the component width, the transparent frame coordinate, the transparent frame length, and the transparent frame width into a preset edge frame analysis algorithm, and calculate to obtain a first edge frame, a second edge frame, a third edge frame, and a fourth edge frame, where transparency of the first edge frame, the second edge frame, the third edge frame, and the fourth edge is not zero;
a combining module 303, configured to perform a combining process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, so as to generate a display frame of the QML Rectangle component.
In the embodiment of the invention, the single mask layer is divided into 5 grids by using a grid movement principle, the 5 grids are described by using a Rectangle component, and the position and the size of the grids of the mask layer are rendered and drawn in a parameter expression mode to realize a video frame selection effect.
Referring to fig. 4, another embodiment of the framing apparatus based on the QML Rectangle component in the embodiment of the present invention includes:
a receiving module 301, configured to receive a setting instruction of a transparent frame in a QML Rectangle component, and read a component length and a component width of the QML Rectangle component, where the setting instruction includes: transparent frame coordinates, transparent frame length and transparent frame width;
a calculating module 302, configured to substitute the component length, the component width, the transparent frame coordinate, the transparent frame length, and the transparent frame width into a preset edge frame analysis algorithm, and calculate to obtain a first edge frame, a second edge frame, a third edge frame, and a fourth edge frame, where transparency of the first edge frame, the second edge frame, the third edge frame, and the fourth edge is not zero;
a combining module 303, configured to perform a combining process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, so as to generate a display frame of the QML Rectangle component.
Wherein the calculating module 302 comprises:
a reading unit 3021 configured to read origin coordinates of the QML Rectangle component, where the origin coordinates include: origin abscissa;
a first generating unit 3022 configured to set the origin coordinate as a first coordinate, the component width as a first width, the transparent frame length as a first length, and generate a first edge frame;
a second generating unit 3023 configured to set the origin abscissa as an abscissa of a second coordinate, set the transparent ordinate as an ordinate of the second coordinate, set the size of the transparent abscissa as a second width, set the transparent frame length as a second length, and generate a second edge frame;
a third generating unit 3024, configured to add the size of the transparent abscissa to the size of the transparent frame width to obtain a horizontal numerical value, set the horizontal numerical value as an abscissa of a third coordinate, set the transparent ordinate as an ordinate of the third coordinate, set a difference between the component width and the horizontal numerical value as a third width, and set the transparent frame length as a third length, so as to generate a third edge frame;
a fourth generating unit 3025, configured to add the size of the transparent ordinate to the size of the transparent frame to obtain a longitudinal value, set the longitudinal value as an ordinate of a fourth coordinate, set the origin abscissa as an abscissa of the fourth coordinate, set a difference between the component length and the longitudinal value as a fourth length, set the component width as a fourth width, and generate a fourth edge frame.
Wherein the third generating unit 3024 is specifically configured to:
adding the size of the transparent horizontal coordinate to the width of the transparent frame to obtain a horizontal middle numerical value;
judging whether the transverse middle value is smaller than the width of the component or not;
if the width of the component is smaller than the width of the component, determining the transverse middle value as a transverse value;
and if the width of the transparent frame is larger than the width of the component, sending the information of the setting error of the width of the transparent frame to a preset display port.
The fourth generating unit 3025 is specifically configured to:
adding the size of the transparent vertical coordinate to the size of the length of the transparent frame to obtain a longitudinal middle numerical value;
judging whether the longitudinal middle value is smaller than the length of the component or not;
if the length of the component is smaller than the length of the component, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the component, sending the information of the setting error of the length of the transparent frame to a preset display port.
Wherein the combination module 303 is specifically configured to:
analyzing whether the transverse numerical value is smaller than the width of the component, and analyzing whether the longitudinal numerical value is smaller than the length of the component;
if the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are all smaller than the first edge frame, the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are combined, and a display frame of the QML Rectangle component is generated;
and if not, sending the length and width setting error information of the transparent frame to a preset display port.
Wherein, the receiving module 301 is specifically configured to:
receiving a setting instruction of a transparent frame in the QML Rectangle component;
judging whether the transparent frame coordinate is in a preset coordinate range of the QML Rectangle component or not;
reading the component length and the component width of the QML Rectangle component if the transparent frame coordinate is in the coordinate range.
The box selection apparatus based on the QML Rectangle component further includes an overlap-add module 304, where the overlap-add module 304 is specifically configured to:
and receiving a photographic image, and overlapping the photographic image and the display frame to generate a display image.
In the embodiment of the invention, the single mask layer is divided into 5 grids by using a grid movement principle, the 5 grids are described by using a Rectangle component, and the position and the size of the grids of the mask layer are rendered and drawn in a parameter expression mode to realize a video frame selection effect.
Fig. 3 and 4 above describe the box selection apparatus based on the QML Rectangle component in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the box selection apparatus based on the QML Rectangle component in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 4 is a schematic structural diagram of a QML Rectangle component-based frame selection apparatus 400 according to an embodiment of the present invention, which may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 420, and one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the box selection device 500 based on the QML Rectangle component. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the QML Rectangle component-based frame selection device 500.
The QML Rectangle component-based checkbox apparatus 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the QML Rectangle component-based bezel device configuration shown in FIG. 5 does not constitute a limitation of the QML Rectangle component-based bezel device, and may include more or fewer components than those shown, or combine certain components, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the QML Rectangle component-based frame selection method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A frame selection method based on a QML Rectangle component is characterized by comprising the following steps:
receiving a setting instruction of a transparent frame in a QML Rectangle component, and reading the component length and the component width of the QML Rectangle component, wherein the setting instruction comprises the following steps: transparent frame coordinates, transparent frame length and transparent frame width;
substituting the component length, the component width, the transparent frame coordinate, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm, and calculating to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the transparencies of the first edge frame, the second edge frame, the third edge frame and the fourth edge are not zero;
and performing combined processing on the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.
2. The QML Rectangle-based component frame selection method of claim 1, wherein the first edge frame comprises: a first coordinate, a first length, a first width, the second edge frame comprising: a second coordinate, a second length, a second width, the third edge frame comprising: a third coordinate, a third length, a third width, the fourth edge frame comprising: a fourth coordinate, a fourth length, a fourth width, the transparent frame coordinate comprising: transparent abscissa, transparent ordinate, will the subassembly length the subassembly width transparent frame coordinate transparent frame length transparent frame width substitutes among the preset edge frame analysis algorithm, and the calculation obtains first edge frame, second edge frame, third edge frame, fourth edge frame and includes:
reading origin coordinates of the QML Rectangle component, wherein the origin coordinates comprise: origin abscissa;
setting the origin coordinate as a first coordinate, setting the component width as a first width, and setting the transparent frame length as a first length, and generating a first edge frame;
setting the origin abscissa as the abscissa of a second coordinate, setting the transparent ordinate as the ordinate of the second coordinate, setting the size of the transparent abscissa as a second width, and setting the length of the transparent frame as a second length to generate a second edge frame;
adding the size of the transparent abscissa to the size of the width of the transparent frame to obtain a transverse numerical value, setting the transverse numerical value as the abscissa of a third coordinate, setting the transparent ordinate as the ordinate of the third coordinate, setting the difference value between the width of the component and the transverse numerical value as a third width, setting the length of the transparent frame as a third length, and generating a third edge frame;
and adding the size of the transparent ordinate to the size of the length of the transparent frame to obtain a longitudinal numerical value, setting the longitudinal numerical value as the ordinate of a fourth coordinate, setting the origin abscissa as the abscissa of the fourth coordinate, setting the difference value between the length of the component and the longitudinal numerical value as a fourth length, setting the width of the component as a fourth width, and generating a fourth edge frame.
3. The QML Rectangle-based component frame selection method of claim 2, wherein the adding the transparent abscissa size and the transparent frame width size to obtain a horizontal numerical value comprises:
adding the size of the transparent horizontal coordinate to the width of the transparent frame to obtain a horizontal middle numerical value;
judging whether the transverse middle value is smaller than the width of the component or not;
if the width of the component is smaller than the width of the component, determining the transverse middle value as a transverse value;
and if the width of the transparent frame is larger than the width of the component, sending the information of the setting error of the width of the transparent frame to a preset display port.
4. The QML Rectangle-based component frame selection method of claim 2 or 3, wherein the adding the transparent ordinate size to the transparent frame length size to obtain a vertical value comprises:
adding the size of the transparent vertical coordinate to the size of the length of the transparent frame to obtain a longitudinal middle numerical value;
judging whether the longitudinal middle value is smaller than the length of the component or not;
if the length of the component is smaller than the length of the component, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the component, sending the information of the setting error of the length of the transparent frame to a preset display port.
5. The QML Rectangle-based component frame selection method of claim 2, wherein the combining the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate the display frame of the QML Rectangle-based component comprises:
analyzing whether the transverse numerical value is smaller than the width of the component, and analyzing whether the longitudinal numerical value is smaller than the length of the component;
if the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are all smaller than the first edge frame, the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are combined, and a display frame of the QML Rectangle component is generated;
and if not, sending the length and width setting error information of the transparent frame to a preset display port.
6. The QML Rectangle-based component framing method of claim 1, wherein the receiving a setting instruction of a transparent frame in the QML Rectangle component, and reading the component length and the component width of the QML Rectangle component comprises:
receiving a setting instruction of a transparent frame in the QML Rectangle component;
judging whether the transparent frame coordinate is in a preset coordinate range of the QML Rectangle component or not;
reading the component length and the component width of the QML Rectangle component if the transparent frame coordinate is in the coordinate range.
7. The QML Rectangle-based component frame selection method of claim 1, further comprising, after the combining the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate the display frame of the QML Rectangle-based component:
and receiving a photographic image, and overlapping the photographic image and the display frame to generate a display image.
8. A QML Rectangle component-based bezel device, wherein the QML Rectangle component-based bezel device comprises:
a receiving module, configured to receive a setting instruction of a transparent frame in a QML Rectangle component, and read a component length and a component width of the QML Rectangle component, where the setting instruction includes: transparent frame coordinates, transparent frame length and transparent frame width;
a calculating module, configured to substitute the component length, the component width, the transparent frame coordinate, the transparent frame length, and the transparent frame width into a preset edge frame analysis algorithm, and calculate to obtain a first edge frame, a second edge frame, a third edge frame, and a fourth edge frame, where transparency of the first edge frame, the second edge frame, the third edge frame, and the fourth edge is not zero;
and the combination module is used for performing combination processing on the transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to generate a display frame of the QML Rectangle component.
9. A QML Rectangle component-based bezel device, wherein the QML Rectangle component-based bezel device comprises: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the QML Rectangle component-based bezel apparatus to perform the QML Rectangle component-based bezel method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the QML Rectangle component-based box selection method of any of claims 1-7.
CN202110735711.3A 2021-06-30 2021-06-30 QML (quality control language) component-based frame selection method, device, equipment and storage medium Active CN113485705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110735711.3A CN113485705B (en) 2021-06-30 2021-06-30 QML (quality control language) component-based frame selection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110735711.3A CN113485705B (en) 2021-06-30 2021-06-30 QML (quality control language) component-based frame selection method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113485705A true CN113485705A (en) 2021-10-08
CN113485705B CN113485705B (en) 2023-11-21

Family

ID=77937043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110735711.3A Active CN113485705B (en) 2021-06-30 2021-06-30 QML (quality control language) component-based frame selection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113485705B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010024520A1 (en) * 2000-03-15 2001-09-27 Ricoh Company, Limited Method and apparatus for table recognition, apparatus for character recognition, and computer product
WO2015130022A1 (en) * 2014-02-26 2015-09-03 엘지전자 주식회사 Digital device and data processing method by digital device
CN105844615A (en) * 2016-03-17 2016-08-10 网易(杭州)网络有限公司 Method of identifying regular rectangular area and apparatus thereof
CN110502176A (en) * 2018-05-16 2019-11-26 武汉斗鱼网络科技有限公司 The implementation method and electronic equipment of scroll bar in a kind of Flickable form
CN110969686A (en) * 2019-11-22 2020-04-07 鑫精合激光科技发展(北京)有限公司 Method for increasing number of three-dimensional characters
CN111199138A (en) * 2018-11-16 2020-05-26 武汉斗鱼网络科技有限公司 Method, system, server and storage medium for stroking bullet screen containing Emoji expression by using QML (QML)
CN111598532A (en) * 2020-04-29 2020-08-28 武汉大学 Automatic generation method and system of disaster assessment report
CN111625693A (en) * 2020-05-29 2020-09-04 深圳前海微众银行股份有限公司 Data processing method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010024520A1 (en) * 2000-03-15 2001-09-27 Ricoh Company, Limited Method and apparatus for table recognition, apparatus for character recognition, and computer product
WO2015130022A1 (en) * 2014-02-26 2015-09-03 엘지전자 주식회사 Digital device and data processing method by digital device
CN105844615A (en) * 2016-03-17 2016-08-10 网易(杭州)网络有限公司 Method of identifying regular rectangular area and apparatus thereof
CN110502176A (en) * 2018-05-16 2019-11-26 武汉斗鱼网络科技有限公司 The implementation method and electronic equipment of scroll bar in a kind of Flickable form
CN111199138A (en) * 2018-11-16 2020-05-26 武汉斗鱼网络科技有限公司 Method, system, server and storage medium for stroking bullet screen containing Emoji expression by using QML (QML)
CN110969686A (en) * 2019-11-22 2020-04-07 鑫精合激光科技发展(北京)有限公司 Method for increasing number of three-dimensional characters
CN111598532A (en) * 2020-04-29 2020-08-28 武汉大学 Automatic generation method and system of disaster assessment report
CN111625693A (en) * 2020-05-29 2020-09-04 深圳前海微众银行股份有限公司 Data processing method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
V. PLATZGUMMER 等: "UAV-Based Coverage Measurement Method for 5G", 《2019 IEEE 90TH VEHICULAR TECHNOLOGY CONFERENCE (VTC2019-FALL)》, pages 1 - 6 *
唐晓梅 等: "基于JKQML的代理模型的研究与实现", 《计算机应用与软件》, vol. 21, no. 03, pages 42 - 43 *

Also Published As

Publication number Publication date
CN113485705B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
US8817074B2 (en) Method of calculating 3D object data within controllable constraints for fast software processing on 32 bit RISC CPUS
CN107481309B (en) Three-dimensional reflection rendering method and device
CN111381224A (en) Laser data calibration method and device and mobile terminal
CN110532497B (en) Method for generating panorama, method for generating three-dimensional page and computing device
JP2014512597A (en) 3D viewing method
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
WO2023279655A1 (en) Image splicing method and apparatus, and electronic device and computer-readable storage medium
Yu et al. HexGen and Hex2Spline: polycube-based hexahedral mesh generation and spline modeling for isogeometric analysis applications in LS-DYNA
Zvan et al. Negative coefficients in two-factor option pricing models
CN113516697B (en) Image registration method, device, electronic equipment and computer readable storage medium
CN113485705A (en) QML Rectangle component-based frame selection method, device, equipment and storage medium
US9354772B2 (en) Method and device for movement of image object
CA2429130A1 (en) Generating smooth feature lines for subdivision surfaces
CN107452046B (en) Texture processing method, device and equipment of three-dimensional city model and readable medium
CN111712811A (en) Scalable graphic SLAM for HD maps
CN112381773B (en) Key cross section data analysis method, device, equipment and storage medium
AU2018203392A1 (en) Placemat: a ui for 2d/3d composition
US20170228210A1 (en) Interaction method, interaction apparatus, and user equipment
CN114693532A (en) Image correction method and related equipment
CN112894154A (en) Laser marking method and device
EP3929871A1 (en) Picture processing method, picture set processing method, computer device, and storage medium
CN112330772A (en) Radar map generation method, device, equipment and storage medium
CN112306588A (en) Window laminating method, device, equipment and medium
CN106569785B (en) Method and device for generating job form
CN111125590A (en) Method and device for drawing thermodynamic diagram

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Ruan Niu Technology Group Co.,Ltd.

Address before: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000

Patentee before: AFIRSTSOFT CO.,LTD.