CN114648498A - Virtual image content measurement method and device, electronic equipment and storage medium - Google Patents
Virtual image content measurement method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114648498A CN114648498A CN202210207278.0A CN202210207278A CN114648498A CN 114648498 A CN114648498 A CN 114648498A CN 202210207278 A CN202210207278 A CN 202210207278A CN 114648498 A CN114648498 A CN 114648498A
- Authority
- CN
- China
- Prior art keywords
- content
- measurement
- measured
- virtual image
- page
- 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.)
- Pending
Links
- 238000000691 measurement method Methods 0.000 title claims description 25
- 238000005259 measurement Methods 0.000 claims abstract description 179
- 230000004044 response Effects 0.000 claims abstract description 17
- 238000009877 rendering Methods 0.000 claims description 26
- 238000013507 mapping Methods 0.000 claims description 8
- 230000003190 augmentative effect Effects 0.000 abstract description 14
- 238000000034 method Methods 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 12
- 238000001514 detection method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006854 communication Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000002950 deficient Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Geometry (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a virtual image content measuring method, a virtual image content measuring device, electronic equipment and a storage medium; the method and the device for measuring the content of the virtual image content page can display the virtual image content page, wherein the virtual image content page comprises the content to be measured, a content measuring tool is displayed on the virtual image content page in response to a measuring request operation, and a measuring result of the content to be measured is determined based on the content measuring operation aiming at the content measuring tool; in the embodiment of the invention, because the content measurement tool is mapped in the virtual image content page with the content to be measured, the content to be measured in the virtual reality or augmented reality scene can be measured by operating the content measurement tool in the virtual image content page, so that the content display problem existing in the virtual image content page can be conveniently detected.
Description
Technical Field
The invention relates to the technical field of terminals, in particular to a virtual image content measuring method and device, electronic equipment and a storage medium.
Background
With the rapid development of the augmented reality technology and the virtual reality technology, the user has higher and higher requirements on the virtual image quality of reality, so that the performance parameters of the virtual reality or augmented reality scene are improved, and a more scientific and accurate quality detection method is required to detect the quality of the content displayed in the virtual reality or augmented reality scene.
Currently, the main approach taken in detecting the quality of content displayed in a virtual reality or augmented reality scene is to capture low quality content in the virtual picture, such as stains, unwanted lines, etc., by a camera. However, with this solution, since the light path in the camera is difficult to match with the light path in the virtual reality or augmented reality scene, the shot picture is affected, and the shooting effect of the camera is difficult to be consistent with the low-quality content effect captured by human eyes, which affects the detection effect.
Disclosure of Invention
The embodiment of the invention provides a virtual image content measuring method and device, electronic equipment and a storage medium, which can measure display content in a virtual reality scene or an augmented reality scene and are convenient for detecting the content display problem in a virtual picture.
The embodiment of the invention provides a virtual image content measurement method, which comprises the following steps:
displaying a virtual image content page, wherein the virtual image content page comprises content to be measured;
in response to a measurement request operation, displaying a content measurement tool on the virtual content page;
determining a measurement result of the content to be measured based on a content measurement operation for the content measurement tool.
Correspondingly, an embodiment of the present invention provides a virtual image content measuring apparatus, including:
the virtual image content page comprises content to be measured;
a tool display unit, which is used for responding to the measurement request operation and displaying a content measurement tool on the virtual image content page;
a result determination unit, configured to determine a measurement result of the content to be measured based on a content measurement operation for the content measurement tool.
Optionally, the content to be measured is obtained by projecting a preset real image based on a preset virtual image mapping parameter, and the tool display unit is configured to display, in response to a measurement request operation, a measurement reference image on the virtual image content page, where the measurement reference image is obtained by projecting a preset reference image based on a virtual image mapping parameter that is the same as the content to be measured, and the measurement reference image includes measurement reference content corresponding to the content to be measured;
the result determining unit is configured to compare the content to be measured with the metric reference content in the metric reference image based on a content metric operation for the metric reference image, so as to obtain a metric result of the content to be measured.
Optionally, the tool display unit is configured to display a content rendering control on the virtual content page in response to a measurement request operation, where the content rendering control is configured to render the content to be measured;
the result determination unit is used for determining the measurement result of the content to be measured based on the content drawing operation aiming at the content drawing control.
Optionally, the result determining unit is configured to move, based on a motion control operation on the metric reference image, metric reference content corresponding to the content to be measured to a contrast position of the content to be measured;
and comparing the content to be measured with the measurement reference content in the measurement reference image at the comparison position to obtain a measurement result of the content to be measured.
Optionally, the result determining unit is configured to obtain a content area corresponding to the content to be measured based on a content rendering operation for the content rendering control;
determining the number of pixel points of the content area;
and determining the measurement result of the content to be measured according to the number of the pixel points.
Optionally, the result determining unit is configured to determine a drawing track of the content drawing operation based on the content drawing operation for the content drawing control;
when the drawing track is a closed track, taking an area in the closed track as a content area corresponding to the content to be measured;
calculating the area of the content area according to the number of the pixel points and the area of the pixel points;
and determining a measurement result of the content to be measured according to the area of the content area.
Optionally, the result determining unit is configured to determine a drawing track of the content drawing operation based on the content drawing operation for the content drawing control;
when the drawing track is a non-closed track, taking a track area of the non-closed track as a content area corresponding to the content to be measured;
calculating the region length of the content region according to the number of the pixel points and the size of the pixel points;
and determining a measurement result of the content to be measured according to the region length of the content region.
Correspondingly, the embodiment of the invention also provides the electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform any of the steps in the virtual image content measurement method provided by the embodiment of the present invention.
Accordingly, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform any of the steps in the virtual image content measurement method provided by the embodiment of the present invention.
In addition, the embodiment of the present invention further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the steps in any virtual image content measurement method provided by the embodiment of the present invention.
By adopting the scheme of the embodiment of the invention, a virtual image content page can be displayed, the virtual image content page comprises content to be measured, a content measurement tool is displayed on the virtual image content page in response to measurement request operation, and a measurement result of the content to be measured is determined based on content measurement operation aiming at the content measurement tool; in the embodiment of the invention, because the content measurement tool is mapped in the virtual image content page with the content to be measured, the content to be measured in the virtual reality or augmented reality scene can be measured by operating the content measurement tool in the virtual image content page, so that the content display problem existing in the virtual image content page can be conveniently detected.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of a virtual image content measurement method according to an embodiment of the present invention;
fig. 2 is a flowchart of a virtual image content measurement method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a landing page provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of an authorized login page provided by an embodiment of the invention;
FIG. 5 is another schematic diagram of an authorized login page provided by an embodiment of the invention;
FIG. 6 is another schematic diagram of an authorization login page provided by an embodiment of the invention;
fig. 7 is a schematic structural diagram of a virtual image content measurement apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a virtual image content measurement apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a virtual image content measuring method and device, electronic equipment and a computer readable storage medium. Specifically, the present invention provides a virtual image content measurement method suitable for a virtual image content measurement apparatus, which may be integrated in an electronic device.
The electronic device may be a terminal or other devices, including but not limited to a mobile terminal, for example, a mobile terminal including but not limited to a smartphone, a smart watch, a tablet computer, a notebook computer, a smart car, and the like.
The virtual image content measuring method provided by the embodiment of the invention can be realized by a terminal, and can also be realized by the terminal and a server together.
The method will be described below by taking the terminal as an example to implement the virtual image content measurement method.
As shown in fig. 1, the virtual image content measurement system provided by the embodiment of the present invention includes a terminal 10. The terminal 10 may be configured to display a virtual content page, where the virtual content page includes content to be measured, display a content measurement tool on the virtual content page in response to a measurement request operation, and determine a measurement result of the content to be measured based on a content measurement operation performed by the content measurement tool.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Embodiments of the present invention will be described in terms of a virtual image content measurement apparatus, which may be specifically integrated in a server or a terminal.
As shown in fig. 2, a specific flow of the virtual image content measurement method in this embodiment may be as follows:
201. and displaying a virtual image content page, wherein the virtual image content page comprises content to be measured.
The virtual image content page is formed by the content currently seen by the user in the virtual reality scene or the augmented reality scene. It can be understood that in a virtual reality scene or an augmented reality scene, the content seen by the user is actually a virtual image projected in human eyes, and the size of the projected virtual image is not fixed and can change with the change of projection parameters.
However, the real image is projected by the traditional projection or TV industry, so it is difficult to measure the variable virtual image content in the virtual reality or augmented reality scene by using the measurement method for the real image.
In the embodiment of the present invention, the content to be measured is virtual image content that needs to be measured, for example, a stain in a page of the content to be measured, an area that does not conform to a preset size, a line that may not conform to a preset length and/or width, and the like.
By means of the measurement, the content size of the content to be measured, such as the taint size, the line length, etc., can be determined.
202. And responding to a measurement request operation, and displaying a content measurement tool on the virtual image content page.
The virtual image content page may include a tool display control, and the measurement request operation may be a trigger operation on the tool display control. Alternatively, the measurement request operation may be a double click at any or a fixed position on the virtual image content page, or a gesture or a posture performed by the user, or a single or combined operation of other settings, which is not limited in this embodiment of the present invention.
In particular, the content measurement tool may be used to measure the content size of the content to be measured. In some alternative embodiments, the content metrology tool may be a metrology reference image. The step "responding to the measurement request operation, displaying a content measurement tool on the virtual image content page", may specifically include:
and responding to a measurement request operation, displaying a measurement reference image on the virtual image content page, wherein the measurement reference image is obtained by projecting a preset reference image based on the same virtual image mapping parameter as the content to be measured, and the measurement reference image comprises measurement reference content corresponding to the content to be measured.
For example, the metrology reference image may be as shown in fig. 3, the metrology reference image has points and lines with different specifications and lengths, the points and lines in the metrology reference image may be collectively referred to as standard points and standard lines, it is understood that the content in the metrology reference image is not limited to the form or content shown in the figure, and a technician may also make a separate standard feature to generate the metrology reference image, and then perform feature selection and switching comparison.
In some examples, the metric reference image may also be in the form of a window.
In other alternative embodiments, the content metrology tool may be a content rendering control that can render the content to be measured. That is, the step "displaying a content measurement tool on the virtual content page in response to a measurement request operation" may specifically include:
and responding to a measurement request operation, displaying a content drawing control on the virtual content page, wherein the content drawing control is used for drawing the content to be measured.
The content rendering control may be in the form of a cursor or in the form of any control, which is not limited in the embodiment of the present invention.
It should be noted that, in some examples, the content to be measured is obtained by projecting a preset real image based on preset virtual image mapping parameters, and a content measurement tool of the present application, such as a measurement reference image, lines depicted by a content drawing control, and the like, is also mapped into a virtual image content page of the content to be measured by using an optical system in a virtual reality or augmented reality scene.
203. Determining a metric result of the content to be measured based on a content metric operation for the content metric tool.
When the content measurement tool is a measurement reference image, step 203 may specifically include:
and comparing the content to be measured with the measurement reference content in the measurement reference image based on the content measurement operation aiming at the measurement reference image to obtain a measurement result of the content to be measured.
Specifically, the content measurement operation may be an operation such as translation or rotation of the measurement reference image. For example, the step "comparing the content to be measured with the metric reference content in the metric reference image based on the content metric operation on the metric reference image to obtain the metric result of the content to be measured" may specifically include:
based on the motion control operation aiming at the metric reference image, moving the metric reference content corresponding to the content to be measured to the contrast position of the content to be measured;
and comparing the content to be measured with the measurement reference content in the measurement reference image at the comparison position to obtain a measurement result of the content to be measured.
In some examples, the motion control operation may be a no operation and the metric reference content may be displayed directly at the contrast location.
Alternatively, as shown in fig. 4, when a defective point (content to be measured) is found by the detection, the measurement reference image is displayed and moved close to the defective point. The size of the bad point can be judged by comparing or covering the point to be measured in a close distance according to the measurement reference content in the measurement reference image.
Alternatively, as shown in fig. 5, when the line length needs to be measured or the line width needs to be compared, the measurement reference image may be rotated by a motion control operation to rotate the measurement reference image to the same angle as the line angle, and the line length measurement or the line width comparison may be performed.
It can be understood that, after the measurement is completed, in order to check whether there are other bad images in the virtual image content page and avoid the confusion between the points in the measurement reference window or the measurement reference image and the bad points, a display/hiding function may be provided for the measurement reference image to facilitate the switching during the measurement.
Wherein, when the content measurement tool is a content drawing control, the step "determining the measurement result of the content to be measured based on the content measurement operation for the content measurement tool" may specifically include:
determining a measurement result of the content to be measured based on a content drawing operation for the content drawing control.
Specifically, the step "determining the measurement result of the content to be measured based on the content drawing operation for the content drawing control" may include:
obtaining a content area corresponding to the content to be measured based on the content drawing operation aiming at the content drawing control;
determining the number of pixel points of the content area;
and determining the measurement result of the content to be measured according to the number of the pixel points.
For example, as shown in fig. 6, the user may circle a range in which a content is located through a content drawing operation, and may calculate the size of the content to be measured according to the circled range.
That is, in some optional embodiments, the step "obtaining the content area corresponding to the content to be measured based on the content drawing operation for the content drawing control" may specifically include:
determining a rendering trajectory of the content rendering operation based on the content rendering operation for the content rendering control;
when the drawing track is a closed track, taking an area in the closed track as a content area corresponding to the content to be measured;
correspondingly, the step of determining the measurement result of the content to be measured according to the number of the pixel points includes:
calculating the area of the content area according to the number of the pixel points and the area of the pixel points;
and determining a measurement result of the content to be measured according to the area of the content area.
For example, for the detection of a dot, a user may draw a blurred edge through a content drawing control (e.g., a brush), and after the drawing is completed, the number N of pixels in a content area (drawing area) is detected to calculate a blurred area S — N × Δ S (where Δ S is the area of a single pixel).
Further, in the embodiment of the present invention, the total area can be converted into a standard circle with the same area, and the diameter of the circle is used to define the size of the stain, i.e. the size of the stain
In other examples, as shown in fig. 7, the user may trace out a range where a piece of content is located through the content tracing operation, and the size of the content to be measured may be calculated according to the traced range.
That is, in some optional embodiments, the step "obtaining the content area corresponding to the content to be measured based on the content drawing operation for the content drawing control" may specifically include:
determining a rendering trajectory of the content rendering operation based on the content rendering operation for the content rendering control;
when the drawing track is a non-closed track, taking a track area of the non-closed track as a content area corresponding to the content to be measured;
correspondingly, the step of determining the measurement result of the content to be measured according to the number of the pixel points includes:
calculating the region length of the content region according to the number of the pixel points and the size of the pixel points;
and determining a measurement result of the content to be measured according to the region length of the content region.
For example, for a line, a method of drawing a line track may be selected, and the length of a defective line is calculated by detecting the number N of pixels occupied by the drawn line track, that is, L ═ N × Δ L (Δ L is a single pixel size), it should be noted that, in order to ensure accuracy, the line width of the drawn line track should be 1 pixel, and if the line width is not one pixel but W pixels, the line length should be L ═ N Δ L/W.
It will be appreciated that in embodiments of the invention, only one type of content metrology tool may be selected, or different types of content metrology tools may be used in combination. For example, detecting smaller points, such as a stain itself occupying only one or two pixels, a metric reference image may be used, detecting curve-like stain detection may employ content delineation controls, and so forth.
As can be seen from the above, in the embodiment of the present invention, a virtual image content page may be displayed, where the virtual image content page includes content to be measured, a content measurement tool is displayed on the virtual image content page in response to a measurement request operation, and a measurement result of the content to be measured is determined based on a content measurement operation for the content measurement tool; in the embodiment of the invention, because the content measurement tool is mapped in the virtual image content page with the content to be measured, the content to be measured in the virtual reality or augmented reality scene can be measured by operating the content measurement tool in the virtual image content page, so that the content display problem existing in the virtual image content page can be conveniently detected.
In order to better implement the method, correspondingly, the embodiment of the invention further provides a virtual image content measuring device.
Referring to fig. 8, the apparatus includes:
a page display unit 801, configured to display a virtual content page, where the virtual content page may include content to be measured;
a tool display unit 802, which may be configured to display a content measurement tool on the virtual content page in response to a measurement request operation;
a result determining unit 803, configured to determine a measurement result of the content to be measured based on a content measurement operation for the content measurement tool.
In some optional embodiments, the content to be measured is obtained by projecting a preset real image based on a preset virtual image mapping parameter, and the tool display unit 802 may be configured to display, in response to a measurement request operation, a measurement reference image on the virtual image content page, where the measurement reference image is obtained by projecting a preset reference image based on the same virtual image mapping parameter as the content to be measured, and the measurement reference image may include measurement reference content corresponding to the content to be measured;
the result determining unit 803 may be configured to compare the content to be measured with the metric reference content in the metric reference image based on a content metric operation on the metric reference image, so as to obtain a metric result of the content to be measured.
In some optional embodiments, the tool display unit 802 may be configured to display a content rendering control on the virtual content page in response to a measurement request operation, where the content rendering control may be configured to render the content to be measured;
the result determining unit 803 may be configured to determine a measurement result of the content to be measured based on a content drawing operation for the content drawing control.
In some optional embodiments, the result determining unit 803 may be configured to move, based on a motion control operation on the metric reference image, metric reference content corresponding to the content to be measured to a contrast position of the content to be measured;
and comparing the content to be measured with the measurement reference content in the measurement reference image at the comparison position to obtain a measurement result of the content to be measured.
In some optional embodiments, the result determining unit 803 may be configured to obtain a content area corresponding to the content to be measured based on a content drawing operation for the content drawing control;
determining the number of pixel points of the content area;
and determining a measurement result of the content to be measured according to the number of the pixel points.
In some optional embodiments, the result determining unit 803 may be configured to determine, based on a content drawing operation for the content drawing control, a drawing trajectory of the content drawing operation;
when the drawing track is a closed track, taking an area in the closed track as a content area corresponding to the content to be measured;
calculating the area of the content area according to the number of the pixel points and the area of the pixel points;
and determining a measurement result of the content to be measured according to the area of the content area.
In some optional embodiments, the result determining unit 803 may be configured to determine, based on a content drawing operation for the content drawing control, a drawing trajectory of the content drawing operation;
when the drawing track is a non-closed track, taking a track area of the non-closed track as a content area corresponding to the content to be measured;
calculating the region length of the content region according to the number of the pixel points and the size of the pixel points;
and determining a measurement result of the content to be measured according to the region length of the content region.
As can be seen from the above, by a virtual image content measurement apparatus, a virtual image content page may be displayed, where content to be measured is included in the virtual image content page, a content measurement tool is displayed in the virtual image content page in response to a measurement request operation, and a measurement result of the content to be measured is determined based on a content measurement operation for the content measurement tool; in the embodiment of the invention, because the content measurement tool is mapped in the virtual image content page with the content to be measured, the content to be measured in the virtual reality or augmented reality scene can be measured by operating the content measurement tool in the virtual image content page, so that the content display problem existing in the virtual image content page can be conveniently detected.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 9, a schematic structural diagram of the electronic device according to the embodiment of the present invention is shown, specifically:
the electronic device may include Radio Frequency (RF) circuitry 901, memory 902 including one or more computer-readable storage media, input unit 903, display unit 904, sensor 905, audio circuitry 906, Wireless Fidelity (WiFi) module 907, processor 908 including one or more processing cores, and power supply 909. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
The memory 902 may be used to store software programs and modules, and the processor 908 performs various functional applications and data processing by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide access to the memory 902 by the processor 908 and the input unit 903.
The input unit 903 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 903 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 908, and receives and executes commands from the processor 908. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 903 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 904 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 904 may include a Display panel, and may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is communicated to the processor 908 to determine the type of touch event, and the processor 908 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 9 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel for input and output functions.
The electronic device may also include at least one sensor 905, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
WiFi belongs to short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 907, and provides wireless broadband internet access for the user. Although fig. 9 shows the WiFi module 907, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 908 is a control center of the electronic device, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902. Optionally, processor 908 may include one or more processing cores; preferably, the processor 908 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 908.
The electronic device also includes a power supply 909 (e.g., a battery) that provides power to the various components, which may preferably be logically coupled to the processor 908 via a power management system, such that the functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 909 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 908 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 902 according to the following instructions, and the processor 908 runs the application programs stored in the memory 902, thereby implementing various functions as follows:
displaying a virtual image content page, wherein the virtual image content page comprises content to be measured;
in response to a measurement request operation, displaying a content measurement tool on the virtual content page;
determining a metric result of the content to be measured based on a content metric operation for the content metric tool.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to perform the steps in any of the virtual image content measurement methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
displaying a virtual image content page, wherein the virtual image content page comprises content to be measured;
in response to a measurement request operation, displaying a content measurement tool on the virtual content page;
determining a metric result of the content to be measured based on a content metric operation for the content metric tool.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium may execute the steps in any virtual image content measurement method provided in the embodiment of the present invention, beneficial effects that can be achieved by any virtual image content measurement method provided in the embodiment of the present invention may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations in the above embodiments.
The virtual image content measurement method, the virtual image content measurement device, the electronic device, and the storage medium according to the embodiments of the present invention are described in detail above, and a specific example is applied to illustrate the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A virtual image content measurement method, comprising:
displaying a virtual image content page, wherein the virtual image content page comprises content to be measured;
in response to a measurement request operation, displaying a content measurement tool on the virtual content page;
determining a measurement result of the content to be measured based on a content measurement operation for the content measurement tool.
2. The virtual image content measurement method according to claim 1, wherein the content to be measured is obtained by projecting a preset real image based on preset virtual image mapping parameters;
the responding to measurement request operation, displaying a content measurement tool on the virtual image content page, comprising:
responding to a measurement request operation, displaying a measurement reference image on the virtual image content page, wherein the measurement reference image is obtained by projecting a preset reference image based on a virtual image mapping parameter which is the same as the content to be measured, and the measurement reference image comprises measurement reference content corresponding to the content to be measured;
the determining a measurement result of the content to be measured based on the content measurement operation for the content measurement tool comprises:
and comparing the content to be measured with the measurement reference content in the measurement reference image based on the content measurement operation aiming at the measurement reference image to obtain a measurement result of the content to be measured.
3. A virtual content measurement method according to claim 1, wherein the displaying a content measurement tool on the virtual content page in response to a measurement request operation comprises:
in response to a measurement request operation, displaying a content drawing control on the virtual content page, wherein the content drawing control is used for drawing the content to be measured;
the determining a measurement result of the content to be measured based on the content measurement operation for the content measurement tool comprises:
determining a measurement result of the content to be measured based on a content drawing operation for the content drawing control.
4. The virtual image content measurement method according to claim 2, wherein the comparing the content to be measured with the measurement reference content in the measurement reference image based on the content measurement operation on the measurement reference image to obtain a measurement result of the content to be measured comprises:
based on the motion control operation aiming at the metric reference image, moving the metric reference content corresponding to the content to be measured to the contrast position of the content to be measured;
and comparing the content to be measured with the measurement reference content in the measurement reference image at the comparison position to obtain a measurement result of the content to be measured.
5. The virtual image content measurement method according to claim 3, wherein the determining a measurement result of the content to be measured based on the content rendering operation for the content rendering control includes:
obtaining a content area corresponding to the content to be measured based on the content drawing operation aiming at the content drawing control;
determining the number of pixel points of the content area;
and determining the measurement result of the content to be measured according to the number of the pixel points.
6. The virtual image content measurement method according to claim 3, wherein the obtaining of the content area corresponding to the content to be measured based on the content drawing operation performed on the content drawing control includes:
determining a rendering trajectory of the content rendering operation based on the content rendering operation for the content rendering control;
when the drawing track is a closed track, taking an area in the closed track as a content area corresponding to the content to be measured;
the determining the measurement result of the content to be measured according to the number of the pixel points includes:
calculating the area of the content area according to the number of the pixel points and the area of the pixel points;
and determining a measurement result of the content to be measured according to the area of the content area.
7. The virtual image content measurement method according to claim 3, wherein the obtaining of the content area corresponding to the content to be measured based on the content drawing operation performed on the content drawing control includes:
determining a rendering trajectory of the content rendering operation based on the content rendering operation for the content rendering control;
when the drawing track is a non-closed track, taking a track area of the non-closed track as a content area corresponding to the content to be measured;
the determining the measurement result of the content to be measured according to the number of the pixel points includes:
calculating the region length of the content region according to the number of the pixel points and the size of the pixel points;
and determining a measurement result of the content to be measured according to the region length of the content region.
8. A virtual image content measurement apparatus, comprising:
the page display unit is used for displaying a virtual image content page, and the virtual image content page comprises content to be measured;
a tool display unit, which is used for responding to the measurement request operation and displaying a content measurement tool on the virtual image content page;
a result determination unit, configured to determine a measurement result of the content to be measured based on a content measurement operation for the content measurement tool.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps in the virtual image content measurement method according to any one of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the virtual image content measurement method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210207278.0A CN114648498A (en) | 2022-03-04 | 2022-03-04 | Virtual image content measurement method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210207278.0A CN114648498A (en) | 2022-03-04 | 2022-03-04 | Virtual image content measurement method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114648498A true CN114648498A (en) | 2022-06-21 |
Family
ID=81994193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210207278.0A Pending CN114648498A (en) | 2022-03-04 | 2022-03-04 | Virtual image content measurement method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114648498A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116540872A (en) * | 2023-04-28 | 2023-08-04 | 中广电广播电影电视设计研究院有限公司 | VR data processing method, device, equipment, medium and product |
-
2022
- 2022-03-04 CN CN202210207278.0A patent/CN114648498A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116540872A (en) * | 2023-04-28 | 2023-08-04 | 中广电广播电影电视设计研究院有限公司 | VR data processing method, device, equipment, medium and product |
CN116540872B (en) * | 2023-04-28 | 2024-06-04 | 中广电广播电影电视设计研究院有限公司 | VR data processing method, device, equipment, medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101951135B1 (en) | Method for scaling video image, and mobile terminal | |
CN107977144B (en) | Screen capture processing method and mobile terminal | |
US9697622B2 (en) | Interface adjustment method, apparatus, and terminal | |
CN106445339B (en) | A kind of method and apparatus that double screen terminal shows stereo-picture | |
US20170147187A1 (en) | To-be-shared interface processing method, and terminal | |
CN106445340B (en) | Method and device for displaying stereoscopic image by double-screen terminal | |
US11294533B2 (en) | Method and terminal for displaying 2D application in VR device | |
CN111555938B (en) | Information processing method and related device | |
TW201504918A (en) | Method, device and moving terminal for examining messages | |
CN107741814B (en) | Display control method and mobile terminal | |
CN103677564B (en) | Slide response method, device and terminal device | |
WO2019029379A1 (en) | Interaction object control method and device, terminal and computer-readable storage medium | |
CN107957841B (en) | Rolling screen capture method and device | |
WO2015014135A1 (en) | Mouse pointer control method and apparatus, and terminal device | |
CN108307031B (en) | Screen processing method, device and storage medium | |
CN114143523A (en) | Brightness adjusting method and device, projection equipment and storage medium | |
CN114648498A (en) | Virtual image content measurement method and device, electronic equipment and storage medium | |
US20150070360A1 (en) | Method and mobile terminal for drawing sliding trace | |
CN108304709B (en) | Face unlocking method and related product | |
CN109478237B (en) | Light source identification method and device | |
CN115348256A (en) | Posting data downloading method and device, storage medium and electronic equipment | |
CN110996003B (en) | Photographing positioning method and device and mobile terminal | |
CN111427496B (en) | Parameter adjusting method and electronic equipment | |
CN106341436B (en) | Method and device for detecting acceleration effect | |
CN111107271B (en) | Shooting method and electronic equipment |
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 |