CN109584360B - Rubbing method and device - Google Patents

Rubbing method and device Download PDF

Info

Publication number
CN109584360B
CN109584360B CN201811467824.4A CN201811467824A CN109584360B CN 109584360 B CN109584360 B CN 109584360B CN 201811467824 A CN201811467824 A CN 201811467824A CN 109584360 B CN109584360 B CN 109584360B
Authority
CN
China
Prior art keywords
dimensional model
mask layer
data
rubbing
rubbed
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
CN201811467824.4A
Other languages
Chinese (zh)
Other versions
CN109584360A (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.)
Wuhan Shuwen Technology Co ltd
Original Assignee
Wuhan Shuwen Technology 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 Wuhan Shuwen Technology Co ltd filed Critical Wuhan Shuwen Technology Co ltd
Priority to CN201811467824.4A priority Critical patent/CN109584360B/en
Publication of CN109584360A publication Critical patent/CN109584360A/en
Application granted granted Critical
Publication of CN109584360B publication Critical patent/CN109584360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1275Print workflow management, e.g. defining or changing a workflow, cross publishing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a rubbing method and a device, comprising the following steps: acquiring three-dimensional model data of a target to be rubbed, and generating a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data; superposing the mask layer on the three-dimensional model according to the preset superposition transparency, and then outputting the three-dimensional model superposed with the mask layer; acquiring touch data input by a user based on the three-dimensional model overlaid with the mask layer; and generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer. The rubbing method and the device provided by the invention can simply and quickly generate the rubbing of the target to be rubbed on the premise of not damaging the target to be rubbed, and protect the cultural relic from being damaged when the cultural relic is rubbed.

Description

Rubbing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a rubbing method and a rubbing device.
Background
Rubbing is a manual reproduction of engraved or etched surfaces, and archaeology and cultural relic related studies often rely on rubbing. The existing rubbing method comprises the following steps: firstly, cleaning the surface of an object to be rubbed (such as calligraphy stele, copper money with patterns and the like), taking a piece of rice paper with a proper size, lightly wetting the rice paper, then covering the wetted rice paper on the surface of the object to be rubbed, simultaneously attaching a layer of soft absorbent paper on the surface of the rice paper to protect the paper surface of the rice paper, lightly tapping and hammering the rice paper by a brush to make the wetted rice paper attached to the surface of the object to be rubbed, then removing the upper layer of the soft absorbent paper, after the rice paper is slightly dried, dipping a proper amount of ink by a rubbing bag (also called a rubbing seed), and lightly flapping on a raised object image (rice paper attached to the surface of the object to be rubbed) to form a black-white rubbing. However, in practice, it has been found that the existing rubbing method requires that a rubbing tool be covered on the surface of the object to be rubbed, which is liable to cause irreversible damage to the object to be rubbed.
Disclosure of Invention
In view of the above problems, the present invention provides a rubbing method and apparatus, which can simply and quickly generate a rubbing for an object to be rubbed without damaging the object to be rubbed, and protect the relic from being damaged when rubbing the relic.
In order to achieve the purpose, the invention adopts the following technical scheme:
the first aspect of the invention discloses a rubbing method, which comprises the following steps:
acquiring three-dimensional model data of a target to be rubbed, and generating a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data;
superposing the mask layer on the three-dimensional model according to a preset superposition transparency, and outputting the three-dimensional model superposed with the mask layer;
acquiring touch data input by a user based on the three-dimensional model on which the mask layer is superimposed;
and generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer.
As an optional implementation manner, in the first aspect of the present invention, the touch data includes one or more of a touch position, a touch area, a touch time, and a touch force on the mask layer.
As an optional implementation manner, in the first aspect of the present invention, generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data, and the mask layer includes:
generating gray level adjustment data according to the touch data, the three-dimensional model data and the mask layer, wherein the gray level adjustment data comprises a plurality of gray values to be adjusted and the position of each gray value to be adjusted corresponding to a pixel point to be adjusted in the mask layer;
determining all the pixel points to be adjusted in the mask image layer according to the gray scale adjustment data;
and adjusting the gray value of each pixel point to be adjusted to the gray value to be adjusted corresponding to the pixel point to be adjusted according to the gray adjustment data, and adjusting the transparency of all the pixel points to be adjusted to a completely opaque value to obtain the rubbing picture of the target to be rubbed.
As an alternative embodiment, in the first aspect of the present invention, the three-dimensional model data includes three-dimensional virtual model data or three-dimensional point cloud data acquired by a three-dimensional scanner.
As an optional implementation manner, in the first aspect of the present invention, after generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data, and the mask layer, the method further includes:
outputting the rubbing picture, and judging whether a completion instruction input by a user is received;
and if the completion instruction input by the user is not received, outputting prompt information for prompting to regenerate the rubbing picture, executing the three-dimensional model for outputting the target to be rubbed according to the three-dimensional model data, and superposing the mask layer on the three-dimensional model according to a preset superposition transparency for outputting.
A second aspect of the present invention discloses a rubbing apparatus, including:
the first acquisition module is used for acquiring three-dimensional model data of a target to be rubbed and generating a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data;
the output module is used for superposing the mask layer on the three-dimensional model according to preset superposition transparency and outputting the three-dimensional model superposed with the mask layer;
the second acquisition module is used for acquiring touch data input by a user based on the three-dimensional model on which the mask layer is superimposed;
and the generating module is used for generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer.
As an optional implementation manner, in the second aspect of the present invention, the touch data includes one or more of a touch position, a touch area, a touch time, and a touch force on the mask layer.
As an optional implementation manner, in the second aspect of the present invention, the generating module includes:
the first sub-module is used for generating gray adjustment data according to the touch data, the three-dimensional model data and the mask layer, wherein the gray adjustment data comprises a plurality of gray values to be adjusted and the position of each gray value to be adjusted, which corresponds to a pixel point to be adjusted, in the mask layer;
the second sub-module is used for determining all the pixel points to be adjusted in the mask layer according to the gray scale adjustment data;
and the third sub-module is used for adjusting the gray value of each pixel point to be adjusted into the gray value to be adjusted corresponding to the pixel point to be adjusted according to the gray adjustment data, and adjusting the transparency of all the pixel points to be adjusted into a completely opaque value to obtain the rubbing picture of the target to be rubbed.
In a third aspect, the present invention discloses a computer device, which includes a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to make the computer device execute part or all of the rubbing method disclosed in the first aspect.
A fourth aspect of the present invention discloses a computer-readable storage medium storing the computer program for use in the computer apparatus of the third aspect.
According to the rubbing method and the device provided by the invention, the rubbing method is applied to a rubbing device with a touch screen, when a target to be rubbed is rubbed, the rubbing device firstly obtains three-dimensional model data of the target to be rubbed, and generates a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data; then the rubbing device superimposes the mask layer on the three-dimensional model according to the preset superimposing transparency, and outputs the three-dimensional model superimposed with the mask layer; at this moment, the user passes through the touch-sensitive screen and inputs the touch data based on three-dimensional model on the three-dimensional model of output, the interactivity between user and the rubbing device has been increased, be favorable to promoting user experience, furthermore, the rubbing device can be according to touch data, three-dimensional model data and mask picture layer, generate the rubbing picture of treating the rubbing target, display space's restriction has been broken, can show various historical relics convenient and fast ground in front of the user, make the user can be under the prerequisite of treating the rubbing target of not damaging, rub any historical relic, and is simple and fast, and then be favorable to protecting the historical relic.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention.
Fig. 1 is a schematic flowchart of a rubbing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a rubbing method according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating the display effect of the three-dimensional model of the word tablet according to the second embodiment of the present invention;
FIG. 4 is a diagram illustrating the overlapping display effect of the mask layer superimposed on the three-dimensional model of the word tablet shown in FIG. 3 according to the second embodiment of the present invention;
FIG. 5 is a partial region rubbing effect diagram of the three-dimensional model based on the word tablet shown in FIG. 3 according to the second embodiment of the present invention;
FIG. 6 is a complete rubbing picture based on the three-dimensional model of the word tablet shown in FIG. 3 according to the second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a rubbing apparatus according to a third 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. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problems in the prior art, the invention provides a rubbing method and a device; the rubbing method is applied to a rubbing device with a touch screen, when a target to be rubbed is rubbed, the rubbing device firstly obtains three-dimensional model data of the target to be rubbed, and generates a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data; then the rubbing device superimposes the mask layer on the three-dimensional model according to the preset superimposing transparency, and outputs the three-dimensional model superimposed with the mask layer; at this moment, the user passes through the touch-sensitive screen and inputs the touch-control data based on three-dimensional model on the three-dimensional model of output, the interactivity between user and the rubbing device has been increased, be favorable to promoting user experience, furthermore, the rubbing device can be according to touch-sensitive data, three-dimensional model data and mask pattern layer, the rubbing picture of the target of rubbing is treated in the generation, show space's restriction has been broken, can show various historical relics convenient and fast ground in front of the user, make the user can be under the prerequisite of treating the target of rubbing not damaging, rub any historical relic, it is simple and fast, and then be favorable to protecting the historical relic not to receive the damage. Also, the techniques may be implemented in relevant software or hardware, as described below by way of example.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a rubbing method according to an embodiment of the present invention. As shown in fig. 1, the rubbing method may include the following steps:
s101, three-dimensional model data of the target to be rubbed are obtained, and a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution are generated according to the three-dimensional model data.
In this embodiment, the target to be rubbed may be a cultural relic (such as a stone tablet, a utensil with a texture, etc.), an object with a texture, etc., which is not limited in this embodiment.
As an alternative embodiment, the three-dimensional model data may be three-dimensional scan model data. The three-dimensional scanning digitization technology can be adopted, high-precision scanning measurement is carried out on the target to be rubbed through three-dimensional scanning equipment, high-precision three-dimensional model data of the target to be rubbed are generated according to scanning measurement results, and the precision can reach the micron level.
As another alternative, the three-dimensional model data may also be three-dimensional point cloud data. Nowadays, three-dimensional point cloud data is used as an important means for digital protection and propagation of cultural relics, and many museums at home and abroad carry out high-precision scanning modeling on cultural relics in a collection and distribute high-precision model data on the internet for visiting and browsing of public users, so that the corresponding three-dimensional point cloud data of a target to be rubbed can be obtained through the internet.
By implementing the rubbing method described in the embodiment, a user can randomly select an interested cultural relic for rubbing when rubbing, so that the limitation of a display space is broken, various cultural relics can be conveniently and quickly displayed in front of the user, the user can deeply know the interested cultural relic, and the user experience can be improved.
The mask layer described in this embodiment actually refers to a picture, and each pixel point on the picture has an RGB channel and an Alpha channel. The RGB channels refer to a red channel, a green channel and a blue channel, the Alpha channel is an 8-bit gray channel, the Alpha channel records transparency information in an image by using 256-level gray, defines transparent, opaque and semitransparent areas, and takes the value of 0 to 1.
And S102, superposing the mask layer on the three-dimensional model according to the preset superposition transparency, and outputting the three-dimensional model superposed with the mask layer.
In this embodiment, if the transparency is defined as 0, which is a completely opaque value, and the transparency is defined as 1, which is a completely transparent value, the predetermined transparency may be 0.5, 0.3, 0.45, etc., which is not limited in this embodiment.
In this embodiment, the size of the mask layer is matched with the size of the three-dimensional model, and the size of the mask layer is determined by the three-dimensional model data.
S103, acquiring touch data input by a user based on the three-dimensional model overlaid with the mask layer.
In this example. The rubbing method is applied to a rubbing device with a touch screen, and a user can input touch data based on a three-dimensional model through corresponding touch operations (such as touch, pressing or beating) on the touch screen according to the three-dimensional model superimposed with a mask layer output by the rubbing device.
In this embodiment, the user may input the touch data based on the three-dimensional model by hand or by using a dedicated extension pack.
And S104, generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer.
In this embodiment, after the three-dimensional model superimposed with the mask layer is output, the actual output effect is equivalent to covering a layer of "glass plate" with the preset transparency on the three-dimensional model, and a user can input touch data to generate a rubbing picture of an object to be rubbed on the "glass plate".
The rubbing method described in the embodiment can carry out high simulation on the traditional manual rubbing in the rubbing form and the rubbing effect, improves the participation of users, can output the rubbing result after the simulation rubbing is completed, improves the user experience, and simultaneously the user can further know cultural relic culture in the rubbing process.
In the rubbing method described in fig. 1, the rubbing method is applied to a rubbing device with a touch screen, and when a target to be rubbed is rubbed, the rubbing device first obtains three-dimensional model data of the target to be rubbed, and generates a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data; then the rubbing device superimposes the mask layer on the three-dimensional model according to the preset superimposing transparency, and outputs the three-dimensional model superimposed with the mask layer; at this moment, the user passes through the touch-sensitive screen and inputs the touch-control data based on three-dimensional model on the three-dimensional model of output, has increased the interactivity between user and the rubbing device, is favorable to promoting user experience, and further, the rubbing device can be according to touch-control data, three-dimensional model data and mask picture layer, generates the rubbing picture of treating the rubbing target. Therefore, the rubbing method described in the embodiment of fig. 1 breaks through the limitation of the display space, and various cultural relics can be conveniently and quickly displayed in front of the user, so that the user can rub any cultural relic on the premise of not damaging the target to be rubbed, and the rubbing method is simple and quick and is favorable for protecting the cultural relics.
Example 2
Referring to fig. 2, fig. 2 is a schematic flow chart of a rubbing method according to an embodiment of the present invention. As shown in fig. 2, the rubbing method may include the following steps:
s201, three-dimensional model data of the target to be rubbed are obtained, and a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution are generated according to the three-dimensional model data.
S202, the mask layer is overlapped on the three-dimensional model according to the preset overlapping transparency, and the three-dimensional model with the mask layer overlapped is output.
In this embodiment, the mask layer is a semitransparent layer with a size matching the three-dimensional model. If the target to be rubbed is a word tablet, please refer to fig. 3 and 4, fig. 3 is a display effect diagram of a three-dimensional model of the word tablet, and fig. 4 is an overlay display effect diagram of a mask layer overlaid on the three-dimensional model of the word tablet shown in fig. 3.
S203, acquiring touch data input by a user based on the three-dimensional model overlaid with the mask layer.
In this embodiment, the touch data includes one or more of a touch position, a touch area, a touch time, and a touch force on the mask layer, which is not limited in this embodiment.
And S204, generating gray scale adjustment data according to the touch data, the three-dimensional model data and the mask layer.
In this embodiment, the gray scale adjustment data includes a plurality of gray scale values to be adjusted and a position of each gray scale value to be adjusted corresponding to a pixel point to be adjusted in the mask layer.
As an optional implementation manner, a gray scale calculation algorithm may be prestored, and the gray scale value to be adjusted at the position corresponding to the mask layer may be calculated by the prestored gray scale calculation algorithm according to the touch data, the three-dimensional model data and the mask layer.
And S205, determining all pixel points to be adjusted in the mask layer according to the gray adjustment data.
In this embodiment, the original gray value of each pixel in the mask layer may be a preset value, for example, the original gray value of each pixel is 0, or the original gray value of each pixel is 225; the original gray values of the pixels in the mask image layer are different, and may be preset values or randomly generated values, which is not limited in this embodiment.
S206, adjusting the gray value of each pixel point to be adjusted into the gray value to be adjusted corresponding to the pixel point to be adjusted according to the gray adjustment data, and adjusting the transparency of all the pixel points to be adjusted into a completely opaque value to obtain the rubbing picture of the target to be rubbed.
In this embodiment, the rubbing picture of the target to be rubbed can be generated according to the touch data, the three-dimensional model data and the mask layer by executing the steps S204 to S206.
In this embodiment, if it is defined that the transparency is completely opaque when the transparency is 0 and the transparency is completely transparent when the transparency is 1, the transparency of all the pixels to be adjusted may be adjusted to 0, so as to obtain a rubbing picture of the target to be rubbed.
In this embodiment, the rubbing picture is a picture obtained after a series of processing is performed on the mask layer.
Referring to fig. 5 and 6, after the user inputs touch data based on the three-dimensional model in a partial area on the superimposed display effect diagram shown in fig. 4, a partial area rubbing effect diagram shown in fig. 5 is generated in real time, and after the user inputs touch data in all areas on the superimposed display effect diagram shown in fig. 4, a complete rubbing picture for the word tablet shown in fig. 5 is generated.
And S207, outputting the rubbing picture, judging whether a finishing instruction input by the user is received, and executing the step S208 if the finishing instruction input by the user is not received.
And S208, outputting prompting information for prompting the regenerated rubbing picture, and executing the step S202 to the step S207.
As an alternative embodiment, if a completion instruction input by the user is received, step S209 is executed.
And S209, storing the rubbing picture.
In this embodiment, after the rubbing picture is stored, the rubbing picture may be further processed by printing, sharing, sending an email, and the like according to an instruction input by a user.
In this embodiment, the three-dimensional model data includes three-dimensional virtual model data or three-dimensional point cloud data acquired by a three-dimensional scanner, which is not limited in this embodiment.
It can be seen that, the rubbing method described in the embodiment is implemented, the interactivity between the rubbing method and the user is increased, the user experience is favorably improved, the limitation of the display space is broken, various cultural relics can be conveniently and quickly displayed in front of the user, the user can rub any cultural relic on the premise of not damaging the target to be rubbed, and the rubbing method is simple and fast and is favorable for protecting the cultural relics.
Example 3
Referring to fig. 7, fig. 7 is a schematic structural diagram of a rubbing device according to an embodiment of the present invention. As shown in fig. 7, the rubbing apparatus includes:
the first obtaining module 310 is configured to obtain three-dimensional model data of a target to be rubbed, and generate a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data.
In this embodiment, the three-dimensional model data includes three-dimensional virtual model data or three-dimensional point cloud data acquired by a three-dimensional scanner, and the like, and this is not limited in the city.
And the output module 320 is configured to superimpose the mask layer on the three-dimensional model according to a preset superimposition transparency, and output the three-dimensional model on which the mask layer is superimposed.
The second obtaining module 330 is configured to obtain touch data input by a user based on the three-dimensional model superimposed with the mask layer.
In this embodiment, after the output module 320 outputs the three-dimensional model superimposed with the mask layer, the second obtaining module 330 may be further triggered to obtain the touch data input by the user based on the three-dimensional model superimposed with the mask layer.
The generating module 340 is configured to generate a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data, and the mask layer.
In this embodiment, the touch data includes one or more of a touch position, a touch area, a touch time, and a touch strength on the mask layer.
In this embodiment, the generating module 340 includes:
the first sub-module 341 is configured to generate gray scale adjustment data according to the touch data, the three-dimensional model data, and the mask layer, where the gray scale adjustment data includes a plurality of gray scale values to be adjusted and a position of each gray scale value to be adjusted corresponding to a pixel point to be adjusted in the mask layer.
The second sub-module 342 is configured to determine all pixel points to be adjusted in the mask layer according to the gray-scale adjustment data.
The third sub-module 343 is configured to adjust the gray value of each pixel to be adjusted to the gray value to be adjusted corresponding to the pixel to be adjusted according to the gray adjustment data, and adjust the transparency of all the pixels to be adjusted to a completely opaque value, so as to obtain a rubbing picture of the target to be rubbed.
It is thus clear that, implement the rubbing method that this embodiment described, not only increased with the user between the interactive nature, be favorable to promoting user experience, broken the restriction of show space moreover, can show various historical relics convenient and fast ground in front of the user for the user can be under the prerequisite that does not damage the target of treating rubbing, carries out the rubbing to any historical relic, and then is favorable to the protection of historical relic simple and fast.
In addition, the invention also provides computer equipment. The computer device comprises a memory and a processor, wherein the memory can be used for storing a computer program, and the processor can execute the computer program so as to enable the computer device to execute the functions of the method or the modules in the rubbing device.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for 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 mobile terminal, and the like. Further, the memory 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.
The embodiment also provides a computer storage medium for storing a computer program used in the computer device.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A rubbing method, comprising:
acquiring three-dimensional model data of a target to be rubbed, and generating a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data;
superposing the mask layer on the three-dimensional model according to a preset superposition transparency, and outputting the three-dimensional model superposed with the mask layer;
acquiring touch data input by a user based on the three-dimensional model on which the mask layer is superimposed;
and generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer.
2. The rubbing method according to claim 1, wherein the touch data includes one or more of a touch position, a touch area, a touch time, and a touch force on the mask layer.
3. The rubbing method according to claim 2, wherein generating the rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer comprises:
generating gray level adjustment data according to the touch data, the three-dimensional model data and the mask layer, wherein the gray level adjustment data comprises a plurality of gray values to be adjusted and the position of each gray value to be adjusted corresponding to a pixel point to be adjusted in the mask layer;
determining all the pixel points to be adjusted in the mask layer according to the gray adjustment data;
and adjusting the gray value of each pixel point to be adjusted to the gray value to be adjusted corresponding to the pixel point to be adjusted according to the gray adjustment data, and adjusting the transparency of all the pixel points to be adjusted to a completely opaque value to obtain the rubbing picture of the target to be rubbed.
4. A rubbing method according to claim 1, wherein the three-dimensional model data comprises three-dimensional virtual model data or three-dimensional point cloud data acquired by a three-dimensional scanner.
5. A rubbing method according to claim 1, wherein after generating a rubbing picture of the object to be rubbed according to the touch data, the three-dimensional model data, and the mask layer, the method further comprises:
outputting the rubbing picture, and judging whether a completion instruction input by a user is received;
and if the completion instruction input by the user is not received, outputting prompt information for prompting to regenerate the rubbing picture, executing the three-dimensional model for outputting the target to be rubbed according to the three-dimensional model data, and superposing the mask layer on the three-dimensional model according to a preset superposition transparency for outputting.
6. A rubbing apparatus, comprising:
the first acquisition module is used for acquiring three-dimensional model data of a target to be rubbed and generating a three-dimensional model of the target to be rubbed and a mask layer with a preset resolution according to the three-dimensional model data;
the output module is used for superposing the mask layer on the three-dimensional model according to the preset superposition transparency and outputting the three-dimensional model superposed with the mask layer;
the second acquisition module is used for acquiring touch data input by a user based on the three-dimensional model on which the mask layer is superimposed;
and the generating module is used for generating a rubbing picture of the target to be rubbed according to the touch data, the three-dimensional model data and the mask layer.
7. A rubbing apparatus according to claim 6, wherein the touch data includes one or more of a touch position, a touch area, a touch time, and a touch force on the mask layer.
8. The rubbing apparatus of claim 7, wherein the generating module comprises:
the first sub-module is used for generating gray adjustment data according to the touch data, the three-dimensional model data and the mask layer, wherein the gray adjustment data comprises a plurality of gray values to be adjusted and the position of each gray value to be adjusted, which corresponds to a pixel point to be adjusted, in the mask layer;
the second sub-module is used for determining all the pixel points to be adjusted in the mask layer according to the gray scale adjustment data;
and the third sub-module is used for adjusting the gray value of each pixel point to be adjusted into the gray value to be adjusted corresponding to the pixel point to be adjusted according to the gray adjustment data, and adjusting the transparency of all the pixel points to be adjusted into a completely opaque value to obtain the rubbing picture of the target to be rubbed.
9. A computer device comprising a memory for storing a computer program and a processor for executing the computer program to cause the computer device to perform the rubbing method of any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that it stores the computer program used in the computer device of claim 9.
CN201811467824.4A 2018-12-03 2018-12-03 Rubbing method and device Active CN109584360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811467824.4A CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811467824.4A CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Publications (2)

Publication Number Publication Date
CN109584360A CN109584360A (en) 2019-04-05
CN109584360B true CN109584360B (en) 2023-04-07

Family

ID=65925929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811467824.4A Active CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Country Status (1)

Country Link
CN (1) CN109584360B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139216B (en) * 2021-05-18 2023-03-21 武汉数文科技有限公司 Digital rubbing method and device and computer equipment
CN113610960B (en) * 2021-07-19 2024-04-02 福建凯米网络科技有限公司 Method, device and storage medium for preventing mold penetration during three-dimensional model merging
CN114387414B (en) * 2021-12-13 2024-03-19 武汉工程大学 Lunar soil particle model generation method and device, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006029562A1 (en) * 2004-09-17 2006-03-23 Xunong Zhang A producing technology of simulating the art oil painting
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006029562A1 (en) * 2004-09-17 2006-03-23 Xunong Zhang A producing technology of simulating the art oil painting
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于CT图像三维重建全骨盆模型与3D打印;徐亮等;《精密制造与自动化》;20161125(第04期);全文 *

Also Published As

Publication number Publication date
CN109584360A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109584360B (en) Rubbing method and device
CN108389257B (en) Generating a three-dimensional model from a scanned object
US11961325B2 (en) Image processing method and apparatus, computer-readable medium, and electronic device
CN110689500B (en) Face image processing method and device, electronic equipment and storage medium
CN109801205B (en) Traceable implicit watermark adding method and device
WO2018068420A1 (en) Image processing method and apparatus
CN103875004A (en) Dynamic selection of surfaces in real world for projection of information thereon
CN111192190B (en) Method and device for eliminating image watermark and electronic equipment
WO2016197469A1 (en) Method and apparatus for generating unlocking interface, and electronic device
JP2008304805A5 (en)
CN105787874B (en) Method and device for mosaic processing of screenshot
CN108307189A (en) Three-dimensional content provides system, method and computer readable recording medium storing program for performing
CN108960012B (en) Feature point detection method and device and electronic equipment
CN111179159A (en) Method and device for eliminating target image in video, electronic equipment and storage medium
CN104539868A (en) Information processing method and electronic equipment
Sari et al. Interactive image inpainting of large-scale missing region
CN107590776A (en) Image processing apparatus and image processing method
CN110751668A (en) Image processing method, device, terminal, electronic equipment and readable storage medium
CN104991695B (en) A kind of information processing method and electronic equipment
CN113110733A (en) Virtual field interaction method and system based on remote duplex
JP2014044595A (en) Line drawing coloring system
CN110310336B (en) Touch projection system and image processing method
CN114972466A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN114860184A (en) Processing device, system and method for blackboard writing display
CN114742970A (en) Processing method of virtual three-dimensional model, nonvolatile storage medium and electronic device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221109

Address after: Room 04, 7 / F, building 1, wudahui garden, phase V, National Geospatial Information Industry base, No.7, wudayuan 1st Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000

Applicant after: WUHAN SHUWEN TECHNOLOGY CO.,LTD.

Address before: 710000 Room 1315, Xi'an Innovation Design Center, No. 69, West Section of South Second Ring Road, Beilin District, Xi'an, Shaanxi

Applicant before: XI'AN SHUWEN TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant