Demonstration control method and device for whale carrying line

文档序号:959874 发布日期:2020-11-03 浏览:5次 中文

阅读说明:本技术 一种提线鲸鱼演示控制方法及装置 (Demonstration control method and device for whale carrying line ) 是由 吴希冰 李娜 寇江伟 孟凡竹 孔佑扬 胡竹青 吴磊 于 2020-07-02 设计创作,主要内容包括:本申请提供了一种提线鲸鱼演示控制方法及装置,该方法包括:整条鲸鱼包括多个鱼段,每个鱼段上表面左右两边各设置一个悬挂点,模拟仿真出鲸鱼游动的动画;通过图像解析,将动画解析成序列帧,序列帧包括多个按时间排序的帧图像;获取当前时刻的帧图像,获取当前时刻的帧图像中每一点的分辨率值;提取当前时刻的帧图像中与悬挂点对应的第一点;获取第一点的分辨率数值;根据第一点的分辨率数值计算得到悬挂点的位移值;根据悬挂点的位移值控制鲸鱼运动;获取下一时刻的帧图像,重复上述步骤。本申请大大提高了鲸鱼演示的视觉效果。(The application provides a demonstration control method and device for whales with line lifting, and the method comprises the following steps: the whole whale comprises a plurality of fish sections, the left side and the right side of the upper surface of each fish section are respectively provided with a suspension point, and animation of whale swimming is simulated; analyzing the animation into a sequence frame through image analysis, wherein the sequence frame comprises a plurality of frame images which are ordered according to time; acquiring a frame image at the current moment, and acquiring a resolution value of each point in the frame image at the current moment; extracting a first point corresponding to the suspension point in the frame image at the current moment; acquiring a resolution value of the first point; calculating to obtain a displacement value of the suspension point according to the resolution value of the first point; controlling whale movement according to the displacement value of the suspension point; and acquiring a frame image at the next moment, and repeating the steps. The visual effect of whale demonstration is greatly improved.)

1. A demonstration control method for a string lifting whale is characterized in that the whole whale comprises a plurality of fish sections, the left side and the right side of the upper surface of each fish section are respectively provided with a suspension point, and the method comprises the following steps:

simulating and simulating an animation of whale swimming;

parsing the animation into a sequence frame by image parsing, the sequence frame comprising a plurality of temporally ordered frame images;

acquiring a frame image at the current moment, and acquiring a resolution value of each point in the frame image at the current moment;

extracting a first point corresponding to the suspension point in the frame image at the current moment;

acquiring a resolution value of the first point;

calculating to obtain a displacement value of the suspension point according to the resolution value of the first point;

controlling whale movement according to the displacement value of the suspension point;

and acquiring a frame image at the next moment, and repeating the steps.

2. The demonstration control method for the whale with the lifting line according to claim 1, wherein the step of calculating the displacement value of the suspension point according to the resolution value of the first point comprises the following steps:

acquiring the resolution and the maximum resolution of a frame image at the current moment, and calculating the ratio a of the resolution and the maximum resolution of the frame image at the current moment;

and the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point is b, the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a.

3. The demonstration control method for the whale fish with the lifting line as claimed in claim 2, wherein the resolution of the frame image at the current moment is an average value of resolutions of all pixel points in the frame image.

4. A demonstration control method for a string lifting whale according to any one of claims 1 to 3, wherein the whole whale comprises a plurality of fish sections with uniform width.

5. A presentation control device for a string lifting whale is characterized in that the whole whale comprises a plurality of fish sections, the left side and the right side of the upper surface of each fish section are respectively provided with a suspension point, and the device comprises:

the simulation unit is used for simulating an animation of whale swimming;

the analysis unit is used for analyzing the animation into a sequence frame through image analysis, and the sequence frame comprises a plurality of frame images which are ordered according to time;

the first acquisition unit is used for acquiring a frame image at the current moment and acquiring a resolution value of each point in the frame image at the current moment;

the extraction unit is used for extracting a first point corresponding to the suspension point in the frame image at the current moment;

a second obtaining unit configured to obtain a resolution value of the first point;

the calculating unit is used for calculating a displacement value of the suspension point according to the resolution value of the first point;

the control unit is used for controlling whale movement according to the displacement value of the suspension point;

and the third acquisition unit is used for acquiring the frame image at the next moment and repeating the steps.

6. The string whale demonstration control device according to claim 5, wherein the computing unit is configured to:

acquiring the resolution and the maximum resolution of a frame image at the current moment, and calculating the ratio a of the resolution and the maximum resolution of the frame image at the current moment;

and the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point is b, the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a.

7. The demonstration control device for whale fish with an elevated line according to claim 6, wherein the resolution of the frame image at the current moment is an average of resolutions of all pixel points in the frame image.

8. A demonstration control for a string lifting whale according to any one of claims 5 to 7 wherein the entire whale includes a plurality of fish sections of uniform width.

9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.

10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-4 are implemented when the program is executed by the processor.

Technical Field

The invention relates to the field of exhibition equipment control, in particular to a whale standing line demonstration control method and device.

Background

With the continuous improvement of living standard, the patterns of display equipment are more and more, and people continuously pursue the improvement of visual effect. The appearance of the whale is lovely, and the action of jumping out of the water surface to breathe is like spraying water, so that the whale is popular. But the visual effect of the current simulated whale is not good enough.

Disclosure of Invention

In order to solve the problem that the visual effect of the existing simulated whale is poor, the embodiment of the application provides a method and a device for demonstrating and controlling the whale by lifting line, and the visual effect of whale demonstration is greatly improved.

In a first aspect, an embodiment of the present application provides a demonstration control method for a string lifting whale, where the whole whale includes a plurality of fish sections, and two suspension points are respectively arranged on the left and right sides of the upper surface of each fish section, and the method includes the steps of:

simulating and simulating an animation of whale swimming;

parsing the animation into a sequence frame by image parsing, the sequence frame comprising a plurality of temporally ordered frame images;

acquiring a frame image at the current moment, and acquiring a resolution value of each point in the frame image at the current moment;

extracting a first point corresponding to the suspension point in the frame image at the current moment;

acquiring a resolution value of the first point;

calculating to obtain a displacement value of the suspension point according to the resolution value of the first point;

controlling whale movement according to the displacement value of the suspension point;

and acquiring a frame image at the next moment, and repeating the steps.

Wherein the calculating the displacement value of the suspension point according to the resolution value of the first point includes:

acquiring the resolution and the maximum resolution of a frame image at the current moment, and calculating the ratio a of the resolution and the maximum resolution of the frame image at the current moment;

and the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point is b, the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a.

And the resolution of the frame image at the current moment is the average of the resolutions of all pixel points in the frame image.

Wherein the whole whale comprises a plurality of fish sections with uniform width.

In a second aspect, the application provides a device for demonstrating and controlling a line-lifting whale, wherein the whole whale comprises a plurality of fish sections, a suspension point is respectively arranged on the left side and the right side of the upper surface of each fish section, and the device comprises:

the simulation unit is used for simulating an animation of whale swimming;

the analysis unit is used for analyzing the animation into a sequence frame through image analysis, and the sequence frame comprises a plurality of frame images which are ordered according to time;

the first acquisition unit is used for acquiring a frame image at the current moment and acquiring a resolution value of each point in the frame image at the current moment;

the extraction unit is used for extracting a first point corresponding to the suspension point in the frame image at the current moment;

a second obtaining unit configured to obtain a resolution value of the first point;

the calculating unit is used for calculating a displacement value of the suspension point according to the resolution value of the first point;

the control unit is used for controlling whale movement according to the displacement value of the suspension point;

and the third acquisition unit is used for acquiring the frame image at the next moment and repeating the steps.

Wherein the computing unit is to:

acquiring the resolution and the maximum resolution of a frame image at the current moment, and calculating the ratio a of the resolution and the maximum resolution of the frame image at the current moment;

and the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point is b, the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a.

And the resolution of the frame image at the current moment is the average of the resolutions of all pixel points in the frame image.

Wherein the whole whale comprises a plurality of fish sections with uniform width.

In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used for implementing the steps of any one of the above methods when executed by a processor.

In a fourth aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.

The method and the device for demonstrating and controlling the whale with the line have the following beneficial effects:

in the application, the whole whale comprises a plurality of fish sections, the left side and the right side of the upper surface of each fish section are respectively provided with a suspension point, and animation of whale swimming is simulated; analyzing the animation into a sequence frame through image analysis, wherein the sequence frame comprises a plurality of frame images which are ordered according to time; acquiring a frame image at the current moment, and acquiring a resolution value of each point in the frame image at the current moment; extracting a first point corresponding to the suspension point in the frame image at the current moment; acquiring a resolution value of the first point; calculating to obtain a displacement value of the suspension point according to the resolution value of the first point; controlling whale movement according to the displacement value of the suspension point; and acquiring a frame image at the next moment, and repeating the steps, thereby greatly improving the visual effect of whale demonstration.

Drawings

FIG. 1 is a schematic flow chart of a demonstration control method for a whale carrying line according to an embodiment of the application;

FIG. 2 is a schematic view of a string lifting whale according to an embodiment of the present application;

FIG. 3 is a schematic structural diagram of a demonstration control device for a whale with a line lifting function according to an embodiment of the application;

fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.

Detailed Description

The present application is further described with reference to the following figures and examples.

In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.

The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

With the continuous improvement of living standard, the patterns of display equipment are more and more, and people continuously pursue the improvement of visual effect. The appearance of the whale is lovely, and the action of jumping out of the water surface to breathe is like spraying water, so that the whale is popular. But the visual effect of the current simulated whale is not good enough.

The scheme is a novel line-lifting whale used in a market or an exhibition hall, and the swimming posture of the whale is simulated through automatic control of a suspension line system.

At present, whale exhibition equipment is usually static exhibition equipment, and a dynamic whale demonstration method is lacked. The existing wire lifting demonstration device basically needs manual control, so that not only the accuracy cannot be guaranteed, but also automatic control is inconvenient.

The invention provides an automatic control method and device for string lifting whale demonstration, which simulate the swimming state of whales by automatically operating string lifting whales, avoid manual participation and effectively improve the accuracy of actions.

Fig. 1 is a schematic flow diagram of a thread lifting whale demonstration control method in an embodiment of the present application, and fig. 2 is a schematic diagram of a thread lifting whale in an embodiment of the present application, as shown in fig. 1-2, the present application provides a thread lifting whale demonstration control method, a whole whale includes a plurality of fish sections, for example, a whole whale includes a plurality of fish sections with uniform width, a suspension point is respectively arranged on each of the left and right sides of the upper surface of each fish section, and the thread lifting whale demonstration control method includes the steps of: s101, simulating and simulating the moving animation of the whale, wherein in the step, the moving animation of the whale can be simulated and simulated through a modeling method. The whale obtained through modeling corresponds to the whale with the line. S103, analyzing the animation into a sequence frame through image analysis, wherein the sequence frame comprises a plurality of frame images which are sequenced according to time.

And S105, acquiring the frame image at the current moment, and acquiring a resolution value of each point in the frame image at the current moment, wherein in the step, the resolution value can be understood as a pixel value. S107, extracting a first point corresponding to the suspension point in the frame image at the current moment; a resolution value for the first point is obtained. S109, calculating a displacement value of the suspension point according to the resolution value of the first point, and calculating the displacement value of the suspension point through numerical equal-proportion conversion, for example, specifically including: acquiring the resolution of a frame image at the current moment and the maximum resolution of the frame image at the current moment, and calculating the ratio a of the resolution of the frame image at the current moment to the maximum resolution; and b is the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point, and the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, wherein the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a. And the resolution of the frame image at the current moment is the average of the resolutions of all the pixel points in the frame image. S111, controlling whales to move according to the displacement values of the suspension points, enabling the resolution numerical value of each section of whale suspension point to correspond to the displacement value of the suspension point one by one, and controlling the whales and the animation to synchronously move by the displacement values of all the suspension points; and acquiring a frame image at the next moment, and repeating the steps, namely repeating the steps S105 to S111.

The present application has the following effects: the whale has agile and changeable posture and special effect, can attract the eyeballs of audiences, and meets the dynamic and aesthetic requirements of the times. The thread lifting whale is simple in structure, good in manufacturing manufacturability, simple to operate, light in weight and low in manufacturing cost. The application display method is simple to operate, and automatic control is high in precision and good in effect.

In this application, cut into the even fish section of width to whole whale, it is relatively independent between every fish section, and both sides respectively set up a suspension point about every fish section upper surface, and suspension point passes through rings and links to each other with the suspension wire system, and the suspension wire system realizes carrying out automatic control to the fish section displacement. An image analysis system is arranged in the suspension line system, the image analysis system automatically analyzes the pixel value of each point of the whale swimming image, and the pixel value of the suspension position of each section of whale is in one-to-one correspondence with the displacement value of the suspension point, so that the whale swimming automatic control can be realized.

In the application, an animation of whale swimming is simulated through simulation, the animation comprises resolution information of images at all time steps, a time interval exists between the analysis of a current time frame image and the analysis of a next time frame image, and the time step refers to the time sequence of the analysis of the frame images. The method comprises the steps of analyzing an animation into a sequence frame through image analysis, then obtaining a resolution value of each point in the image at the current time step of the image, then extracting a resolution value corresponding to a suspension point, converting the resolution value into a displacement value of the suspension point through numerical value equal proportion conversion, and determining a displacement value of whale movement according to the resolution value corresponding to the suspension point, namely enabling the resolution value of each section of whale suspension point to be in one-to-one correspondence with the displacement value of the suspension point, and controlling whale and the animation to move synchronously through displacement values of all suspension points.

The resolution of each sequence of frames is the average of the resolution of each image. The numerical value equal proportion conversion method for determining the displacement of the suspension point according to the resolution numerical value comprises the following steps: and taking the ratio of the resolution ratio of each sequence frame to the maximum resolution ratio, wherein the ratio is equal to the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point, and obtaining the displacement value of the suspension point according to the ratio and the maximum displacement of the suspension point.

As shown in fig. 3, the application provides a line lifting whale demonstration control device, the whole whale comprises a plurality of fish sections, the left side and the right side of the upper surface of each fish section are respectively provided with a suspension point, and the line lifting whale demonstration control device comprises:

the simulation unit 201 is used for simulating an animation of whale swimming;

the analysis unit 202 is used for analyzing the animation into a sequence frame through image analysis, wherein the sequence frame comprises a plurality of frame images which are ordered according to time;

a first obtaining unit 203, configured to obtain a frame image at a current time, and obtain a resolution value of each point in the frame image at the current time;

an extracting unit 204, configured to extract a first point corresponding to the suspension point in the frame image at the current time;

a second acquisition unit 205 configured to acquire a resolution value of the first point;

a calculating unit 206, configured to calculate a displacement value of the suspension point according to the resolution value of the first point;

a control unit 207 for controlling whale movement according to the displacement value of the suspension point;

a third obtaining unit 208, configured to obtain a frame image at the next time, and repeat the above steps.

Wherein the calculation unit is configured to:

acquiring the resolution and the maximum resolution of the frame image at the current moment, and calculating the ratio a of the resolution and the maximum resolution of the frame image at the current moment;

the ratio of the displacement value of the suspension point to the maximum displacement of the suspension point is b, the displacement value of the suspension point is calculated according to the ratio b and the maximum displacement of the suspension point, the maximum displacement of the suspension point is known, and the ratio b is equal to the ratio a.

And the resolution of the frame image at the current moment is the average of the resolutions of all the pixel points in the frame image.

Wherein the whole whale comprises a plurality of fish sections with uniform width.

In the present application, the embodiment of the demonstration control device for string lifting whale is basically similar to the embodiment of the demonstration control method for string lifting whale, and reference is made to the description of the embodiment of the demonstration control method for string lifting whale for relevant points.

It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.

Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.

The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for demonstrating and controlling the whale by lifting the line are realized. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.

Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application, such as a laptop computer, a desktop computer, a workstation, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers, as shown in fig. 4. The computer device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The computer apparatus of the present application comprises a processor 401, a memory 402, an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus 405 or otherwise. The memory 402 has stored thereon a computer program which is executable on the processor 401 and which, when executed by the processor 401, implements the above mentioned beluga decuprocedure demonstration control method steps.

The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the data processing computer apparatus, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick or other input device. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. Display devices may include, but are not limited to, Liquid Crystal Displays (LCDs), Light Emitting Diode (LED) displays, plasma displays, and touch screens.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种石墨烯负离子发热内暖被

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!