CN113485705B - QML (quality control language) component-based frame selection method, device, equipment and storage medium - Google Patents

QML (quality control language) component-based frame selection method, device, equipment and storage medium Download PDF

Info

Publication number
CN113485705B
CN113485705B CN202110735711.3A CN202110735711A CN113485705B CN 113485705 B CN113485705 B CN 113485705B CN 202110735711 A CN202110735711 A CN 202110735711A CN 113485705 B CN113485705 B CN 113485705B
Authority
CN
China
Prior art keywords
frame
transparent
component
length
width
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.)
Active
Application number
CN202110735711.3A
Other languages
Chinese (zh)
Other versions
CN113485705A (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

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 (quality control language) component. The method comprises the following steps: 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, wherein the setting instruction comprises: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame; substituting the component length, the component width, the transparent frame coordinates, 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 transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge is not zero; 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.

Description

QML (quality control language) component-based frame selection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of component applications, and in particular, to a QML Rectangle component-based frame selection method, apparatus, device, and storage medium.
Background
In the QML environment, when the prior art wants to implement video frame selection by component technology, it is impossible to implement transparent display effect of a selection frame in the video frame, and non-selected areas have no opaque display effect. The conventional method of layer overlaying cannot be achieved because the transparency of the layer-overlaid subsequent block layer is visually equal to or greater than that of the background layer. Similar to putting another piece of glass on a certain rectangular area of the brown glass, the transparent frame effect cannot be achieved.
In a QML environment, however, it is sometimes necessary to process an image in a video state, and to make a targeted transparent display under a selected frame. The prior art cannot realize the function, so that a good display effect cannot be generated, and a method for adjusting the display effect of the transparent frame according to new setting data is not available. Therefore, there is a need to use a technique that enables free adjustment of the frame shape and display transparency in QML environments.
Disclosure of Invention
The invention mainly aims to solve the technical problem that transparent frames cannot be selected and displayed in a QML environment.
The first aspect of the present invention provides a QML Rectangle component-based framing method, which comprises:
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, wherein the setting instruction comprises: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
substituting the component length, the component width, the transparent frame coordinates, 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 transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge is not zero;
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.
Optionally, in a first implementation manner of the first aspect of the present invention, the first edge frame includes: first coordinates, 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: third coordinates, a third length, a third width, the fourth edge frame comprising: fourth coordinates, fourth length, fourth width, the transparent frame coordinates include: the transparent abscissa and the transparent ordinate, 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 includes:
reading origin coordinates of the QML Rectangle component, wherein the origin coordinates comprise: an origin abscissa;
setting the origin coordinates as first coordinates, setting the assembly width as first width, setting the transparent frame length as first length, and generating a first edge frame;
setting the origin abscissa as an abscissa of a second coordinate, setting the transparent ordinate as an ordinate of the second coordinate, setting the size of the transparent abscissa as a second width, setting the transparent frame length as a second length, and generating a second edge frame;
adding the transparent abscissa to the transparent frame width to obtain a transverse value, setting the transverse value as an abscissa of a third coordinate, setting the transparent ordinate as an ordinate of the third coordinate, setting the difference between the component width and the transverse value as a third width, setting the transparent frame length as a third length, and generating a third edge frame;
and adding the transparent ordinate to the transparent frame length 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 component length and the longitudinal value as the fourth length, setting the component width as the 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 transparent abscissa size to the transparent frame width size to obtain a lateral value includes:
adding the transparent abscissa size to the transparent frame width size to obtain a transverse intermediate value;
determining whether the lateral median value is less than the component width;
if the width of the assembly is smaller than the width of the assembly, determining the transverse intermediate value as a transverse value;
and if the width of the transparent frame is larger than the width of the assembly, sending information of the width setting error 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 transparent ordinate size to the transparent frame length size to obtain a longitudinal numerical value includes:
adding the transparent ordinate size to the transparent frame length size to obtain a longitudinal intermediate value;
determining whether the longitudinal median is less than the component length;
if the length of the assembly is smaller than the length of the assembly, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the assembly, sending information of the error setting 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 performing a combination process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, and generating the display frame of the QML Rectangle component includes:
analyzing whether the transverse value is less than the component width and analyzing whether the longitudinal value is less than the component length;
if the two types of the QML (quality control) modules are smaller than each other, 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 (quality control) module;
if not, the length and width setting error information of the transparent frame is sent 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 the QML Rectangle component, and reading a component length and a component width of the QML Rectangle component include:
receiving a setting instruction of a transparent frame in the QML Rectangle component;
judging whether the transparent frame coordinates are in a preset coordinate range of the QML Rectangle component;
and if the transparent frame coordinates are in the coordinate range, reading the component length and the component width of the QML Rectengle component.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after performing a combination process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, generating a display frame of the QML Rectangle component further includes:
and receiving a photographic image, and superposing the photographic image and the display frame to generate a display image.
The second aspect of the present invention provides a QML Rectangle component-based framing device, comprising:
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: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
the calculating module is used for substituting the component length, the component width, the transparent frame coordinates, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm to calculate to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the 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 carrying out 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.
A third aspect of the present invention provides a QML Rectangle component-based framing device, comprising: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; the at least one processor invokes the instructions in the memory to cause the QML Rectangle component based framing device to perform the QML Rectangle component based framing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the above-described QML Rectangle component-based box selection method.
In the embodiment of the invention, the single mask layer is divided into 5 lattices by using a lattice movement principle, the 5 lattices are described by using a Rectangle component, and rendering and drawing of the variation of the lattice position and the size of the mask layer are performed by a parameter expression mode, so that the video frame selection effect is realized.
Drawings
FIG. 1 is a diagram illustrating an embodiment of a QML Rectengle component-based framing method in an embodiment of the present invention;
FIG. 2 is a schematic diagram showing a display effect of a frame selection method based on a QML Rectangle component according to an embodiment of the present invention;
FIG. 3 is a diagram of one embodiment of a QML Rectengle component-based framing device in an embodiment of the present invention;
FIG. 4 is a diagram of another embodiment of a QML Rectangle component-based framing device in an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a frame selection device based on QML Rectangle component in an 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 (quality control language) component.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, 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 or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, where an embodiment of a block selection method based on QML Rectangle components in an embodiment of the present invention includes:
101. receiving a set instruction of a transparent frame in the QML Rectangle component, and reading a component length and a component width of the QML Rectangle component, wherein the set instruction comprises: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
in this embodiment, the frame is generated in the Rectangle component by giving the coordinates, length and width of the frame relative to the parent frame, and the instruction for giving the component frame can be given through data writing, and the setting of the whole transparent frame can be realized through touch clicking, so that the display of the transparent frame is realized.
Preferably, step 101 may perform the steps of:
1011. receiving a setting instruction of a transparent frame in the QML Rectangle component;
1012. judging whether the transparent frame coordinates are in a preset coordinate range of the QML Rectangle component;
1013. if the transparent frame coordinates are in the coordinate range, the component length and the component width of the QML Rectangle component are read.
In the step 1011-1013, a construction instruction of data transmission is received, whether the coordinates of the transparent frame are within the coordinate range is checked, if the coordinates are outside the coordinate range, the transparent frame cannot be constructed, and information of the coordinate error is sent to the preset port. If the coordinates of the transparent frame do not fall outside the coordinate range, the basic conditions for constructing the transparent frame are considered, 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 coordinates, 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 transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge is not zero;
in this embodiment, when the transparent coordinate range is confirmed, the transparent frame is generated, and since the transparent frame is rectangular with one vertex and two sides confirmed, the shape is also fixed, and thus the transparent frame is initially set, and the entire transparent frame is fixed. Based on the length and width of the whole assembly, generating a first edge frame, a second edge frame, a third edge frame and a fourth edge frame at the edges of the transparent frame, wherein 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 are 0-1 in the Rectangle, 0 represents complete transparency, 1 represents opacity, the settings are marked as "transparency:", for example, "transparency: 0.5" sets transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge frame to 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 transparency.
Preferably, the step 102 may be specifically performed by the following steps:
the first edge frame includes: first coordinates, first length, first width, the second edge frame includes: second coordinates, second length, second width, the third edge frame includes: third coordinates, a third length, a third width, and a fourth edge frame comprising: fourth coordinate, fourth length, fourth width, transparent frame coordinates include: 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 to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame through calculation, wherein the first edge frame, the second edge frame, the third edge frame and the fourth edge frame comprise:
1021. reading origin coordinates of the QML Rectengle component, wherein the origin coordinates comprise: an origin abscissa;
1022. setting an origin coordinate as a first coordinate, setting a component width as a first width, setting a transparent frame length as a first length, and generating a first edge frame;
1023. setting an origin abscissa as an abscissa of a second coordinate, setting a transparent ordinate as an ordinate of the second coordinate, setting a size of the transparent abscissa as a second width, setting a transparent frame length as a second length, and generating a second edge frame;
1024. adding the width of the transparent frame to the size of the transparent abscissa to obtain a transverse value, setting the transverse 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 value as the third width, setting the length of the transparent frame as the third length, and generating a third edge frame;
1025. and adding the transparent ordinate to the transparent frame length 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 between the component length and the longitudinal value as the fourth length, setting the component width as the fourth width, and generating a fourth edge frame.
In steps 1021-1025, the first edge box may be described as Rectengle { id: r1; x is 0; y is 0; width: parent. height: r5.Y }, the second edge box can be described as Rectengle { id: r2; x is 0; y is r5.y; width: r5.X; height: r5.Height }, the third edge frame can be described as Rectangle { id: r3; x is r5.x+r5.width; y is r5.y; width: parent. Width- (r5.x+r5.width); height: r5.Height }, the fourth edge frame can be described as Rectangle { id: r4; x is 0; y is r5.y+r5.height; width: parent. The method comprises the steps of performing calculation on a parent, namely, parent, height- (r5.y+r5.height) }, wherein parent, width is a component width, r5.y is a transparent ordinate, r5.x is a transparent abscissa, r5.height is a transparent frame width, r5.height is a transparent frame length, parent, height is a component length, and in the calculation process, a command generated by using a Rectingle as an excitation frame is "id:" is an activation command for setting a name, "x:" is an activation command for setting an abscissa, "y:" is an activation command for setting an ordinate, "width:" is an activation command for setting a width, "height:" is an activation command for setting a length.
Preferably, in step 1024, "add transparent abscissa size to transparent frame width size to obtain a lateral value" there may be also a detection of whether the transparent frame is out of range, the following steps are performed:
10241. adding the transparent horizontal coordinate size to the transparent frame width size to obtain a transverse intermediate value;
10242. judging whether the transverse middle numerical value is smaller than the width of the assembly;
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. if the width of the transparent frame is larger than the width of the component, sending information of the width setting error of the transparent frame to a preset display port.
In steps 10241-10244, since it is not known in the coordinate range whether the transparent frame has a transparent frame that exceeds the range, if the lateral intermediate value is greater than the component width, indicating that the size of the extension of the transparent frame in the lateral direction has exceeded the range, the third frame cannot be generated, and since the component range is restricted, a specific transparent frame cannot be generated within the component range.
Preferably, in step 1025, "add transparent ordinate size to transparent frame length size to obtain longitudinal value", detection can be added on the basis of 10241-10244, or the following steps can be independently executed:
10251. adding the transparent longitudinal coordinate size to the transparent frame length size to obtain a longitudinal intermediate value;
10252. judging whether the longitudinal middle value is smaller than the length of the assembly;
10253. if the length of the assembly is smaller than the length of the assembly, determining the longitudinal middle value as a longitudinal value;
10254. if the length of the transparent frame is larger than the length of the assembly, information of the setting error of the length of the transparent frame is sent to a preset display port.
In the steps 10251-10254, mainly in the case of generating a transparent frame, the transparent frame length is judged whether the displayed assembly is exceeded under the condition of fixing the transparent frame coordinates, and if yes, the error is reported. If the component range size is not exceeded, a longitudinal 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 the display frame of the QML Rectangle component.
In this embodiment, the display frames that have been calculated by the QML Rectangle component are displayed in the whole component, as in fig. 2, where the 1, 2, 3, and 4 regions are all the first, second, third, and fourth edge frames with non-zero transparency, and the 5 region is the display region of the transparent frame.
Preferably, under steps 10241-10245, step 103 may perform the steps of:
1031. analyzing whether the transverse numerical value is smaller than the width of the assembly and whether the longitudinal numerical value is smaller than the length of the assembly;
1032. if the two frames are smaller than each other, 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;
1033. if not, the length and width setting error information of the transparent frame is sent to a preset display port.
In the step 1031-1033, the step of detecting can be moved to the step 1031-1033, when the image data is finally generated, analysis is carried out to judge whether the transparent frame length and the transparent frame width exceed the assembly range under the condition of fixing the transparent frame coordinates, if so, the transparent frame cannot be displayed, and the information of incorrect setting of the transparent frame length and width is sent to the display screen of the display device. If the calculated transparent frame, the first edge frame, the second edge frame, the third edge frame and the fourth edge frame are not exceeded, and the components are arranged and displayed according to the calculation result.
Further, after step 103, the following steps may be performed:
1034. and receiving the photographic image, and superposing the photographic image and the display frame to generate a display image.
In this embodiment, after the display image of the photographic image and the display frame are superimposed, that is, the display of the areas 1, 2, 3, and 4 is opaque, and the area 5 is transparent, the original photographic image is displayed in QML environment by using the Rectangle component, so that the display effect of different transparent frames is achieved.
In the embodiment of the invention, the single mask layer is divided into 5 lattices by using a lattice movement principle, the 5 lattices are described by using a Rectangle component, and rendering and drawing of the variation of the lattice position and the size of the mask layer are performed by a parameter expression mode, so that the video frame selection effect is realized.
The above describes a block selecting method based on QML Rectangle component in the embodiment of the present invention, and the following describes a block selecting device based on QML Rectangle component in the embodiment of the present invention, referring to fig. 3, one embodiment of the block selecting device based on 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: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
a calculating module 302, configured to substitute the component length, the component width, the transparent frame coordinates, 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 a combining module 303, configured to perform a combination process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, and generate a display frame of the QML Rectangle component.
In the embodiment of the invention, the single mask layer is divided into 5 lattices by using a lattice movement principle, the 5 lattices are described by using a Rectangle component, and rendering and drawing of the variation of the lattice position and the size of the mask layer are performed by a parameter expression mode, so that the video frame selection effect is realized.
Referring to fig. 4, another embodiment of a block selecting apparatus based on QML Rectangle component in an embodiment of the present invention comprises:
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: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
a calculating module 302, configured to substitute the component length, the component width, the transparent frame coordinates, 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 a combining module 303, configured to perform a combination process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, and generate a display frame of the QML Rectangle component.
Wherein the computing module 302 comprises:
a reading unit 3021, configured to read origin coordinates of the QML Rectangle component, where the origin coordinates include: an origin abscissa;
a first generating unit 3022 for setting the origin coordinates to a first coordinate, setting the component width to a first width, setting the transparent frame length to a first length, and generating a first edge frame;
a second generating unit 3023 configured to set the origin abscissa to an abscissa of a second coordinate, set the transparent ordinate to an ordinate of the second coordinate, set the size of the transparent abscissa to a second width, set the transparent frame length to a second length, and generate a second edge frame;
a third generating unit 3024, configured to obtain a lateral value by adding the transparent abscissa size to the transparent frame width size, set the lateral value to an abscissa of a third coordinate, set the transparent ordinate to an ordinate of the third coordinate, set a difference between the component width and the lateral value to a third width, set the transparent frame length to a third length, and generate a third edge frame;
a fourth generating unit 3025, configured to add the transparent ordinate size to the transparent frame length size to obtain a longitudinal value, set the longitudinal value to the ordinate of the fourth coordinate, set the origin abscissa to the abscissa of the fourth coordinate, set the difference between the component length and the longitudinal value to the fourth length, set the component width to the fourth width, and generate a fourth edge frame.
Wherein the third generating unit 3024 is specifically configured to:
adding the transparent abscissa size to the transparent frame width size to obtain a transverse intermediate value;
determining whether the lateral median value is less than the component width;
if the width of the assembly is smaller than the width of the assembly, determining the transverse intermediate value as a transverse value;
and if the width of the transparent frame is larger than the width of the assembly, sending information of the width setting error of the transparent frame to a preset display port.
Wherein the fourth generating unit 3025 is specifically configured to:
adding the transparent ordinate size to the transparent frame length size to obtain a longitudinal intermediate value;
determining whether the longitudinal median is less than the component length;
if the length of the assembly is smaller than the length of the assembly, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the assembly, sending information of the error setting 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 value is less than the component width and analyzing whether the longitudinal value is less than the component length;
if the two types of the QML (quality control) modules are smaller than each other, 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 (quality control) module;
if not, the length and width setting error information of the transparent frame is sent to a preset display port.
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 coordinates are in a preset coordinate range of the QML Rectangle component;
and if the transparent frame coordinates are in the coordinate range, reading the component length and the component width of the QML Rectengle component.
The block selecting device based on the QML Rectangle component further includes a stacking module 304, where the stacking module 304 is specifically configured to:
and receiving a photographic image, and superposing 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 lattices by using a lattice movement principle, the 5 lattices are described by using a Rectangle component, and rendering and drawing of the variation of the lattice position and the size of the mask layer are performed by a parameter expression mode, so that the video frame selection effect is realized.
The block selecting device based on the QML Rectangle component in the embodiment of the present invention is described in detail from the point of view of the modularized functional entity in fig. 3 and fig. 4, and the block selecting device based on the QML Rectangle component in the embodiment of the present invention is described in detail from the point of view of hardware processing.
Fig. 4 is a schematic structural diagram of a QML Rectangle component-based box selecting device 400 according to an embodiment of the present invention, where the QML Rectangle component-based box selecting device 400 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 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 application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the QML Rectangle component based box apparatus 500. 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 box apparatus 500.
The QML Rectangle component based box selection device 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 service, mac OS X, unix, linux, freeBSD, and the like. Those skilled in the art will appreciate that the QML Rectangle component based box apparatus structure shown in fig. 5 does not constitute a limitation of the QML Rectangle component based box apparatus, and may include more or fewer components than shown, or may combine certain components, or may be arranged in 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 may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions are executed on a computer, cause the computer to perform the steps of the QML Rectangle component based frame selection method.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A QML Rectangle component-based framing method, comprising the steps of:
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, wherein the setting instruction comprises: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
substituting the component length, the component width, the transparent frame coordinates, 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 transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge is not zero;
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;
wherein the first edge frame comprises: first coordinates, 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: third coordinates, a third length, a third width, the fourth edge frame comprising: fourth coordinates, fourth length, fourth width, the transparent frame coordinates include: the transparent abscissa and the transparent ordinate, 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 includes:
reading origin coordinates of the QML Rectangle component, wherein the origin coordinates comprise: an origin abscissa;
setting the origin coordinates as first coordinates, setting the assembly width as first width, setting the transparent frame length as first length, and generating a first edge frame;
setting the origin abscissa as an abscissa of a second coordinate, setting the transparent ordinate as an ordinate of the second coordinate, setting the size of the transparent abscissa as a second width, setting the transparent frame length as a second length, and generating a second edge frame;
adding the transparent abscissa to the transparent frame width to obtain a transverse value, setting the transverse value as an abscissa of a third coordinate, setting the transparent ordinate as an ordinate of the third coordinate, setting the difference between the component width and the transverse value as a third width, setting the transparent frame length as a third length, and generating a third edge frame;
adding the transparent ordinate to the transparent frame length 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 between the component length and the longitudinal value as the fourth length, setting the component width as the fourth width, and generating a fourth edge frame;
wherein, the performing a combination process on the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, generating a display frame of the QML Rectangle component includes:
analyzing whether the transverse value is less than the component width and analyzing whether the longitudinal value is less than the component length;
if the two types of the QML (quality control) modules are smaller than each other, 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 (quality control) module;
if not, the length and width setting error information of the transparent frame is sent to a preset display port.
2. The QML Rectangle component based framing method of claim 1, wherein the adding the transparent abscissa size to the transparent frame width size comprises:
adding the transparent abscissa size to the transparent frame width size to obtain a transverse intermediate value;
determining whether the lateral median value is less than the component width;
if the width of the assembly is smaller than the width of the assembly, determining the transverse intermediate value as a transverse value;
and if the width of the transparent frame is larger than the width of the assembly, sending information of the width setting error of the transparent frame to a preset display port.
3. The QML Rectangle component based framing method of claim 1 or 2, wherein the adding the transparent ordinate size to the transparent frame length size to obtain a longitudinal value comprises:
adding the transparent ordinate size to the transparent frame length size to obtain a longitudinal intermediate value;
determining whether the longitudinal median is less than the component length;
if the length of the assembly is smaller than the length of the assembly, determining the longitudinal middle value as a longitudinal value;
and if the length of the transparent frame is larger than the length of the assembly, sending information of the error setting of the length of the transparent frame to a preset display port.
4. The QML Rectangle component based box selection method of claim 1, wherein receiving a set instruction of a transparent box in a QML Rectangle component, and reading a component length and a 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 coordinates are in a preset coordinate range of the QML Rectangle component;
and if the transparent frame coordinates are in the coordinate range, reading the component length and the component width of the QML Rectengle component.
5. The QML Rectangle component based frame selection method of claim 1, wherein after the combining processing of the transparent frame, the first edge frame, the second edge frame, the third edge frame, and the fourth edge frame, generating the QML Rectangle component display frame, further comprises:
and receiving a photographic image, and superposing the photographic image and the display frame to generate a display image.
6. A QML Rectangle component based framing apparatus, wherein the QML Rectangle component based framing apparatus 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: coordinates of the transparent frame, length of the transparent frame and width of the transparent frame;
the calculating module is used for substituting the component length, the component width, the transparent frame coordinates, the transparent frame length and the transparent frame width into a preset edge frame analysis algorithm to calculate to obtain a first edge frame, a second edge frame, a third edge frame and a fourth edge frame, wherein the transparency of the first edge frame, the second edge frame, the third edge frame and the fourth edge is not zero;
the combination module is used for carrying out 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;
wherein the first edge frame comprises: first coordinates, 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: third coordinates, a third length, a third width, the fourth edge frame comprising: fourth coordinates, fourth length, fourth width, the transparent frame coordinates include: transparent abscissa, transparent ordinate, the calculation module includes:
a reading unit, configured to read origin coordinates of the QML Rectangle component, where the origin coordinates include: an origin abscissa;
a first generating unit configured to set the origin coordinates as first coordinates, set the component width as first width, set the transparent frame length as first length, and generate a first edge frame;
a second generating unit, 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, configured to add the transparent abscissa size to the transparent frame width size to obtain a transverse value, set the transverse value to an abscissa of a third coordinate, set the transparent ordinate to an ordinate of the third coordinate, set a difference between the component width and the transverse value to a third width, set the transparent frame length to a third length, and generate a third edge frame;
a fourth generating unit, configured to add the transparent ordinate size to the transparent frame length size to obtain a longitudinal value, set the longitudinal value to an ordinate of a fourth coordinate, set the origin abscissa to an abscissa of the fourth coordinate, set a difference between the component length and the longitudinal value to a fourth length, set the component width to a fourth width, and generate a fourth edge frame;
wherein, the combination module is specifically used for:
analyzing whether the transverse value is less than the component width and analyzing whether the longitudinal value is less than the component length;
if the two types of the QML (quality control) modules are smaller than each other, 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 (quality control) module;
if not, the length and width setting error information of the transparent frame is sent to a preset display port.
7. A QML Rectangle component based framing device, wherein the QML Rectangle component based framing device comprises: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the QML Rectangle component based framing device to perform the QML Rectangle component based framing method of any of claims 1-5.
8. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the QML Rectangle component based box selection method of any of claims 1-5.
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 CN113485705A (en) 2021-10-08
CN113485705B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4159720B2 (en) * 2000-03-15 2008-10-01 株式会社リコー Table recognition method, table recognition device, character recognition device, and storage medium storing table recognition program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
UAV-Based Coverage Measurement Method for 5G;V. Platzgummer 等;《2019 IEEE 90th Vehicular Technology Conference (VTC2019-Fall)》;1-6 *
基于JKQML的代理模型的研究与实现;唐晓梅 等;《计算机应用与软件》;第21卷(第03期);42-43, 72 *

Also Published As

Publication number Publication date
CN113485705A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US8201101B2 (en) Resolution independent layout
US8749553B1 (en) Systems and methods for accurately plotting mathematical functions
Sariyildiz et al. Analysis the robustness of control systems based on disturbance observer
TWI601020B (en) Graphical analysis system and graphical analysis method
CN110460827B (en) Method and device for determining working state of galvanometer and computer storage medium
CN108304318B (en) Device compatibility testing method and terminal device
US7369127B1 (en) Dynamic control of graphic representations of data
CN103208094B (en) For the method and system to image applications wave filter
JP6636963B2 (en) Image processing apparatus and image processing method
CN113485705B (en) QML (quality control language) component-based frame selection method, device, equipment and storage medium
US20190318517A1 (en) Electronic apparatus, information processing method, system, and medium
JPS6048766B2 (en) drawing display device
KR101769129B1 (en) Interaction method for chart to chart in a dashboard that is implemented in an online environment
US7200818B2 (en) Systems and methods for messaging in a multi-frame Web application
CN111712811A (en) Scalable graphic SLAM for HD maps
US11288778B2 (en) Creation and rasterization of shapes using geometry, style settings, or location
CN110020285B (en) Histogram processing method and device
CN112381773A (en) Key cross section data analysis method, device, equipment and storage medium
US20030052881A1 (en) Graphical value display program, graphical value display method and recording medium
CN107194878A (en) Image split-joint method and device
US20240241623A1 (en) Method and measurement system for carrying out and/or displaying a measurement process
Xing et al. Scalable shortest paths browsing on land surface
EP1324233A2 (en) Grid convergence solution computation system
Banga et al. Direct calculation of likelihood-based benchmark dose levels for quantitative responses
KR101798145B1 (en) Method and system for processing data at server side

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

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.

CP01 Change in the name or title of a patent holder