CN110148199A - Scribble Area generation method and computer storage medium based on courseware - Google Patents

Scribble Area generation method and computer storage medium based on courseware Download PDF

Info

Publication number
CN110148199A
CN110148199A CN201810142164.6A CN201810142164A CN110148199A CN 110148199 A CN110148199 A CN 110148199A CN 201810142164 A CN201810142164 A CN 201810142164A CN 110148199 A CN110148199 A CN 110148199A
Authority
CN
China
Prior art keywords
region
courseware
scribble
generated
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810142164.6A
Other languages
Chinese (zh)
Other versions
CN110148199B (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.)
Beijing Xintang Sichuang Educational Technology Co Ltd
Original Assignee
Beijing Xintang Sichuang Educational 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 Beijing Xintang Sichuang Educational Technology Co Ltd filed Critical Beijing Xintang Sichuang Educational Technology Co Ltd
Priority to CN201810142164.6A priority Critical patent/CN110148199B/en
Publication of CN110148199A publication Critical patent/CN110148199A/en
Application granted granted Critical
Publication of CN110148199B publication Critical patent/CN110148199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of scribble Area generation method and computer storage medium based on courseware.This method comprises: obtaining courseware data;The anchor point information in courseware region and the supplemental characteristic in courseware region are determined according to courseware data;The positional relationship data and parameters relationship data in preset scribble region to be generated are obtained according to courseware data;The supplemental characteristic in scribble region to be generated is determined according to the parameters relationship data of the supplemental characteristic in courseware region, scribble region to be generated;According to the anchor point information in courseware region, it is to be generated scribble region positional relationship data, it is to be generated scribble region supplemental characteristic, generate the scribble region of courseware.This method can promote the adaptability in scribble region.

Description

Scribble Area generation method and computer storage medium based on courseware
Technical field
The present invention relates to field of computer technology more particularly to a kind of scribble Area generation methods and calculating based on courseware Machine storage medium.
Background technique
With the development of computer and Internet technology, remote online teaching is achieved.Existing remote online teaching Refer to, academics and students realize the Web-based instruction using Internet technology by electronic equipment (such as computer, mobile terminal).With For online classroom, teacher and classmate enter same may be implemented audio, video, figure behind line classroom, between teacher and classmate The multimedia files such as piece are shared.In addition, during teacher carries out the Web-based instruction by online classroom, it may be necessary to pass through painting The mode of crow is marked or content presentation.
In existing Online class product, in order to use scribble function during courseware is shown, need online It is packed into plug-in unit in the product of classroom, when user needs to scribble, opens the plug-in unit, realizes scribble function, while the plug-in unit can handle It scribbles synchronous with picture.The scribble region that such mode generates depends on plug-in unit, and scribble region is fixed, cannot be adapted to different Courseware, adaptability are bad.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of scribble Area generation method based on courseware and computer storage is situated between Matter, to solve the problems, such as that scribble region is fixed in the prior art, adaptability is bad.
The embodiment of the present invention in a first aspect, providing a kind of scribble Area generation method based on courseware comprising: obtain Courseware data;The anchor point information in courseware region and the supplemental characteristic in courseware region are determined according to courseware data;According to courseware number According to obtain it is preset it is to be generated scribble region positional relationship data and parameters relationship data;According to the parameter number in courseware region According to, it is to be generated scribble region parameters relationship data determine it is to be generated scribble region supplemental characteristic;According to determining for courseware region Site information, it is to be generated scribble region positional relationship data, it is to be generated scribble region supplemental characteristic, generate the scribble of courseware Region.
According to a second aspect of the embodiments of the present invention, a kind of computer storage medium, computer storage medium storage are provided Have: for obtaining the instruction of courseware data;For determining anchor point information and the courseware region in courseware region according to courseware data Supplemental characteristic instruction;For obtaining the positional relationship data and parameter in preset scribble region to be generated according to courseware data The instruction of relation data;For according to the parameters relationship data of the supplemental characteristic in courseware region, scribble region to be generated determine to Generate the instruction of the supplemental characteristic in scribble region;For the position according to the anchor point information in courseware region, scribble region to be generated The supplemental characteristic for setting relation data, scribble region to be generated generates the instruction in the scribble region of courseware.
The scribble Area generation scheme based on courseware realizes automation and generates scribble region, and scribbling region can be with It is automatic to adapt to courseware, solve the problems, such as existing scribble region fix, adaptability it is bad.Due to the letter in scribble region to be generated Breath is obtained from courseware, the position in every page of corresponding scribble region of each courseware or courseware, big so that when using the courseware It is small to be determined by courseware, when avoiding teacher using scribble function, require to open scribble plug-in unit setting scribble region manually every time The cumbersome problem of operation.In addition, scribble function caused by full frame scribble in the prior art and other operative interventions are also avoided, The problem of using closing scribble is needed when other function.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart for scribble Area generation method based on courseware that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of scribble Area generation method based on courseware provided by Embodiment 2 of the present invention;
Fig. 3 is the interface schematic diagram of the online class teacher side of the embodiment of the present invention two;
Fig. 4 is the main interface layer, courseware interface layer and scribble region circle of the online class teacher side of the embodiment of the present invention two The display structural schematic diagram of surface layer;
Fig. 5 is located at scribble area for operating pointer behind the generation scribble region of the online class teacher side of the embodiment of the present invention two Overseas interface schematic diagram;
Fig. 6 is located at scribble area for operating pointer behind the generation scribble region of the online class teacher side of the embodiment of the present invention two Interface schematic diagram in domain.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart of scribble Area generation method based on courseware provided in an embodiment of the present invention.Such as Fig. 1 institute Show, this method can be applied in online class, to generate scribble region in the interface that teacher side is shown, teacher be allow to exist Scribble function is used during by online class live streaming or recorded video.This method comprises:
S101: courseware data are obtained.
Courseware data can be the courseware data of the teacher side load courseware of online class.The courseware data may include one The courseware data of a courseware page also may include the courseware data of multiple courseware pages, for example, for the class of all courseware pages in courseware Number of packages evidence, the present embodiment to this with no restriction.
It may include at least one shape, size, version, courseware content of courseware etc. in courseware data, and without being limited thereto.
S102: the anchor point information in courseware region and the supplemental characteristic in courseware region are determined according to courseware data.
Courseware region is for carrying out courseware displaying and/or courseware operation.Include in the interface of the teacher side of online class The courseware region.
Optionally, display area can be adapted to different display terminal and courseware, i.e., determined according to the courseware data of acquisition The anchor point information in courseware region and the supplemental characteristic in courseware region.Wherein, the anchor point information in courseware region is used to indicate class The anchor point information of position of the part region on the display interface of display terminal, courseware region can be any one of courseware region The coordinate of point.The supplemental characteristic in courseware region is used to indicate shape and ruler of the courseware region on the display interface of display terminal It is very little.The supplemental characteristic in courseware region includes the shape and size in courseware region.
The anchor point information in courseware region can be determined according to the interface location of the teacher side of online class.For example, default The distance between the anchor point and the anchor point at interface of teacher side in courseware region.
It, can be according in courseware data in order to be adapted to different display terminal and courseware in a kind of feasible mode Shape, size, version and the currently determination such as resolution ratio, the ratio of width to height of display terminal courseware area corresponding with the courseware data The anchor point information in domain and the supplemental characteristic in courseware region.
S103: the positional relationship data and parameters relationship number in preset scribble region to be generated are obtained according to courseware data According to.
The positional relationship data and parameters relationship data in scribble region to be generated are preset in courseware data.
Wherein, positional relationship data are used to indicate the relative positional relationship in scribble region and courseware region to be generated.It is to be generated The supplemental characteristic in scribble region to be generated and the supplemental characteristic in courseware region are used to indicate at the parameters relationship data in scribble region Mapping relations.
By presetting the positional relationship data and parameters relationship data in scribble region to be generated in courseware region, can make The region that must scribble is corresponding with courseware data, that is, the scribble region generated with courseware be it is leading, so as to avoid needing in the prior art Problem relatively complicated existing for manual setting scribble region is wanted, but also scribble region can be adapted to according to courseware, with enhancing Adaptability.
S104: painting to be generated is determined according to the parameters relationship data of the supplemental characteristic in courseware region, scribble region to be generated The supplemental characteristic in crow region.
The supplemental characteristic in scribble region may include the shape and size in scribble region.In order to enhance the adaptation in scribble region Property, the supplemental characteristic in region of scribbling can be determining according to the supplemental characteristic in courseware region and the parameters relationship data in scribble region, Making the size and shape etc. in scribble region in this way can change with the variation in courseware region, to promote the more of scribble region Sample and adaptability.
In a kind of feasible pattern, when the supplemental characteristic in courseware region includes the shape and size in courseware region, due to Parameters relationship data indicate the mapping relations of the supplemental characteristic in scribble region to be generated and the supplemental characteristic in courseware region, therefore root The shape in the supplemental characteristic in scribble region can be determined according to the shape and mapping relations in the courseware region, similarly, according to The size and mapping relations in the courseware region can determine the size in the supplemental characteristic in scribble region.
It should be noted that the mapping relations in parameters relationship data can according to need determination.For example, scribble to be generated Region parameter relation data may include shape map relation data and size mapping relations data.Wherein, shape map relationship Data are used to indicate the corresponding relationship of the shape in scribble region to be generated and the shape in courseware region.Size mapping relations data are used In the corresponding relationship of the size for the size and courseware region for indicating scribble region to be generated, for example, size mapping relations data can To indicate the area ratio of courseware region area and region area of scribbling.
According to shape map relation data, the shape in courseware region can be corresponded with the shape in scribble region, can also To be one-to-many or many-one.It, can be with when the mapping relations of the shape in courseware region and the shape in scribble region are one-to-many Default rotation rule determines the shape in final scribble region.
It may include formula in size mapping relations data, to determine corresponding scribble area according to the size in courseware region The size in domain.When size mapping relations data there are it is multiple when, it is suitable to be determined according to the shape in determining scribble region Size mapping relations data.
For example, according to shape map relation data, determining the shape in scribble region when the shape in courseware region is rectangle It may be rectangle;Certainly, in other embodiments, the shape in scribble region can also be determined for round or polygon etc..Root The size in the scribble region of rectangle can be determined according to size mapping relations data, the size in courseware region.It is closed when size maps Coefficient according to there are it is multiple when, suitably sized mapping relations data can be determined according to the shape in the scribble region determined.Such as, It, can be according between the width in instruction courseware region, the width of height and region of scribbling, height when region of scribbling is rectangle The size mapping relations data of corresponding relationship determine the size in scribble region.It, can be according to instruction when region of scribbling is round The size mapping relations data of corresponding relationship between the diameter in courseware region and the diameter in region of scribbling determine scribble region Size.
S105: according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, scribble to be generated The supplemental characteristic in region generates the scribble region of courseware.
Since the positional relationship data in scribble region to be generated are used to indicate the phase in scribble region and courseware region to be generated To positional relationship, for example, the positional relationship data in scribble region to be generated include scribble region to be generated anchor point information with The relative co-ordinate information of the anchor point information in courseware region.It therefore, can be according to the anchor point information in courseware region and the position Relation data determine it is to be generated scribble region anchor point information, and then combine it is to be generated scribble region supplemental characteristic generate with The corresponding scribble region of courseware.
This method realizes automation and generates scribble region, and region of scribbling can adapt to courseware automatically, solve existing The scribble problem that region is fixed, adaptability is bad.Due to positional relationship data, the parameters relationship data in scribble region to be generated It is obtained Deng from courseware, so that part class when using the courseware, in the every courseware page or courseware of each courseware or courseware The position in the corresponding scribble region of part page, size are determined by courseware, when avoiding teacher using scribble function, require hand every time The dynamic cumbersome problem for opening scribble plug-in unit setting scribble region operation.It is made in addition, also avoiding full frame scribble in the prior art At scribble function and other operative interventions, use when other function need close scribble the problem of.
Embodiment two
Fig. 2 is a kind of flow chart of scribble Area generation method based on courseware provided by Embodiment 2 of the present invention.Such as Fig. 2 It is shown, this method comprises:
S201: courseware data are obtained.
This method can be adapted for online class, is generated with the instruction in online class according to courseware and corresponds to courseware Scribble region, to promote the adaptability in scribble region.Fig. 3 is that the interface of the online class teacher side of the embodiment of the present invention two shows It is intended to.As shown in figure 3, in the present embodiment, the teacher side interface of online class application includes main interface 305, teacher's window 301, student's window 302 and courseware region.Wherein, courseware region includes only to the visible operating area of teacher side 304 and to religion Shi Duan and the visible display area 303 of student side.It is located at display using the scribble region 306 that the method in the present embodiment generates In region 303, so that teacher side and student side are equal it can be seen that the scribble content scribbled in region 306.
Optionally, operation button can be set in operating area 304, is controlled for the display area 303 to courseware System, such as start game button, switching card button etc..
Optionally, other operation buttons or control etc. can also be shown in the interface of the teacher side of online class, herein It repeats no more.Online class can be the windows client based on qt exploitation, be also possible to Android application or ios application Deng.
It should be noted that in the present embodiment, the courseware loaded in online class is intelligent courseware, which can To be a web front-end page for combining production by HTML5, CSS and JS (JavaScript), teacher side can be embedded in Middle display.It after generating scribble region, can directly scribble in scribble region, in order to adapt to different courseware and courseware row Version, it is corresponding to generate different scribble regions for different coursewares.
When the teacher side of online class starts and loads courseware, the courseware data of acquisition can be the class for obtaining entire courseware Number of packages evidence is also possible to obtain the courseware data of a certain or certain courseware pages.It may include shape, the ruler of courseware in courseware data At least one very little, version, courseware content etc., and it is without being limited thereto.Wherein, courseware content can serve to indicate that in the text of courseware Appearance, picture material, audio-video frequency content etc. may be used to indicate that the typesetting etc. of the content-data in courseware.
S202: the anchor point information in courseware region and the supplemental characteristic in courseware region are determined according to courseware data.
As previously mentioned, courseware region is for carrying out courseware displaying and/or courseware operation.In order to be adapted to courseware, courseware The anchor point information in region and the supplemental characteristic in courseware region etc. are determined according to specific display terminal and courseware data, to guarantee Good display effect.
The anchor point information in courseware region can be determined according to the interface location of the teacher side of online class.For example, default The distance between the anchor point and the anchor point at interface of teacher side in courseware region.
The anchor point information in courseware region can be the coordinate information at any point in courseware region, or and teacher side The range information etc. at the edge at interface.In a kind of feasible pattern, by taking rectangle courseware region as an example, anchor point can be rectangle class The top left corner apex in part region, anchor point information can be the coordinate of the top left corner apex, can be denoted as (x0, y0).At other In embodiment, courseware region can be other shapes, such as round, polygon (for example, equilateral triangle, regular pentagon, positive six side Shape) etc., when courseware region is round, anchor point information can be central coordinate of circle.
It, can be according in courseware data in order to be adapted to different display terminal and courseware in a kind of feasible mode Shape, size, version and the currently determination such as resolution ratio, the ratio of width to height of display terminal courseware area corresponding with the courseware data The anchor point information in domain and the supplemental characteristic in courseware region.
For example, the version in courseware data can indicate the ratio of width to height in courseware region, example when courseware region is rectangle Such as, the ratio of width to height in the corresponding courseware region of the courseware that version is 1.0 is 16:9, the corresponding courseware region of courseware that version is 2.0 The ratio of width to height be 20:9 etc..The ratio of width to height that courseware region is determined according to version can determine class in conjunction with the size in courseware data The size in part region.It should be noted that the ratio of width to height refer to rectangle width (length of X-direction) and height (Y direction The ratio between length).
S203: the positional relationship data and parameters relationship number in preset scribble region to be generated are obtained according to courseware data According to.
The positional relationship data and parameters relationship data in scribble region to be generated are preset in courseware data.
Wherein, positional relationship data are used to indicate the relative positional relationship in scribble region and courseware region to be generated.It is to be generated The supplemental characteristic in scribble region to be generated and the supplemental characteristic in courseware region are used to indicate at the parameters relationship data in scribble region Mapping relations.
By presetting the positional relationship data and parameters relationship data in scribble region to be generated in courseware region, can make The region that must scribble is corresponding with courseware data, that is, the scribble region generated with courseware be it is leading, so as to avoid needing in the prior art Problem relatively complicated existing for manual setting scribble region is wanted, but also scribble region can be adapted to according to courseware, with enhancing Adaptability.
It should be noted that being interacted between teacher side and courseware by JavaScript language, it is any appropriate that courseware passes through Customized interface transmit the data that preset data or teacher side need to teacher side.For example, by customized JavaScript interface realizes the positional relationship data in transmitting scribble region to be generated, (in the present embodiment mode, painting to be generated The positional relationship data in crow region may include the opposite seat of the anchor point in scribble region to be generated and the anchor point in courseware region Mark, is denoted as (x1, y1)).
S204: painting to be generated is determined according to the parameters relationship data of the supplemental characteristic in courseware region, scribble region to be generated The supplemental characteristic in crow region.
The supplemental characteristic in scribble region may include the shape and size in scribble region.In order to enhance the adaptation in scribble region Property, the supplemental characteristic in region of scribbling can be determining according to the supplemental characteristic in courseware region and the parameters relationship data in scribble region, Making the size and shape etc. in scribble region in this way can change with the variation in courseware region, to promote the more of scribble region Sample and adaptability.
In a kind of feasible pattern, when the supplemental characteristic in courseware region includes the shape and size in courseware region, due to Parameters relationship data indicate the mapping relations of the supplemental characteristic in scribble region to be generated and the supplemental characteristic in courseware region, therefore root The shape in the supplemental characteristic in scribble region can be determined according to the shape and mapping relations in the courseware region, similarly, according to The size and mapping relations in the courseware region can determine the size in the supplemental characteristic in scribble region.
It should be noted that the mapping relations in parameters relationship data can according to need determination.For example, scribble to be generated Region parameter relation data may include shape map relation data and size mapping relations data.Wherein, shape map relationship Data are used to indicate the corresponding relationship of the shape in scribble region to be generated and the shape in courseware region.Size mapping relations data are used In the corresponding relationship of the size for the size and courseware region for indicating scribble region to be generated, for example, size mapping relations data can To indicate the area ratio of courseware region area and region area of scribbling.
According to shape map relation data, the shape in courseware region can be corresponded with the shape in scribble region, can also To be one-to-many or many-one.It, can be with when the mapping relations of the shape in courseware region and the shape in scribble region are one-to-many Default rotation rule determines the shape in final scribble region.
It may include formula in size mapping relations data, to determine corresponding scribble area according to the size in courseware region The size in domain.When size mapping relations data there are it is multiple when, it is suitable to be determined according to the shape in determining scribble region Size mapping relations data.
For example, according to shape map relation data, determining the shape in scribble region when the shape in courseware region is rectangle It may be rectangle;Certainly, in other embodiments, the shape in scribble region can also be determined for round or polygon etc..Root The size in the scribble region of rectangle can be determined according to size mapping relations data, the size in courseware region.It is closed when size maps Coefficient according to there are it is multiple when, suitably sized mapping relations data can be determined according to the shape in the scribble region determined.Such as, It, can be according between the width in instruction courseware region, the width of height and region of scribbling, height when region of scribbling is rectangle The size mapping relations data of corresponding relationship determine the size in scribble region.It, can be according to instruction when region of scribbling is round The size mapping relations data of corresponding relationship between the diameter in courseware region and the diameter in region of scribbling determine scribble region Size.
S205: according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, scribble to be generated The supplemental characteristic in region generates the scribble region of courseware.
Since the positional relationship data in scribble region to be generated are used to indicate the phase in scribble region and courseware region to be generated To positional relationship, for example, the positional relationship data in scribble region to be generated include scribble region to be generated anchor point information with The relative co-ordinate information of the anchor point information in courseware region.It therefore, can be according to the anchor point information in courseware region and the position Relation data determine it is to be generated scribble region anchor point information, and then combine it is to be generated scribble region supplemental characteristic generate with The corresponding scribble region of courseware.
Since for the student side of online class, the operating area in courseware region is invisible to its, and therefore, it is necessary to protect Card scribble region is located in the display area in courseware region, to guarantee that the scribble content student in the scribble region after generating is equal It can be seen that.
For this purpose, further including preset scribble region parameter Data correction value to be generated in courseware data, wherein painting to be generated Crow region parameter Data correction value includes scribble region shape corrected value to be generated and scribble area size to be generated corrected value.
In a kind of feasible pattern, according to the anchor point information in courseware region, the positional relationship number in scribble region to be generated According to, it is to be generated scribble region supplemental characteristic, the scribble region for generating courseware includes:
S205a: preset scribble region parameter Data correction value to be generated is obtained.
For example, being obtained according to the shape in scribble region corresponding to be generated in scribble region parameter Data correction value to be generated Scribble region shape corrected value and scribble area size to be generated corrected value.For example, if scribble region is rectangle, acquisition and square The corresponding scribble region shape corrected value to be generated of shape, and painting to be generated is obtained according to the scribble region shape corrected value to be generated Crow area size corrected value.It certainly, in other embodiments, can also be according to the scribble region shape corrected value to be generated, class The acquisition of information scribble area size corrected values to be generated such as version of the number of packages in.
S205b: if the supplemental characteristic in scribble region to be generated generates scribble region parameter Data correction value phase with wait scribble Matching, then according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, scribble region to be generated Supplemental characteristic generates the scribble region of courseware.
If being applied below by the supplemental characteristic in rectangle pair scribble region to be generated of the shape in region of scribbling with wait scribble to generate Crow region parameter Data correction value matches, then is closed according to the position of the anchor point information in courseware region, scribble region to be generated According to the supplemental characteristic in, scribble region to be generated, the scribble region for generating courseware is illustrated coefficient:
When scribble region be rectangle when, according to it is to be generated scribble region supplemental characteristic in size indicated by width and Height calculates the ratio of width to height in scribble region to be generated;The ratio of width to height and scribble area size's corrected value institute when scribble region to be generated When the ratio of width to height matching of instruction, according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, determine The location coordinate information in scribble region to be generated;According to the location coordinate information in determining scribble region to be generated, painting to be generated The supplemental characteristic in crow region generates the scribble region of courseware.
It should be noted that the ratio of width to height indicated by the ratio of width to height and scribble area size's corrected value in scribble region to be generated Matching can be the two unanimously, be also possible to the difference of the two in range of tolerable variance.In a kind of feasible mode, if courseware region Anchor point information be that the top left corner apex coordinate in courseware region is denoted as (x0, y0).Scribble region and courseware region to be generated Positional relationship data are that the relative coordinate of the anchor point and the anchor point in scribble region to be generated in courseware region is denoted as (x1, y1). The coordinate information of the location coordinate information in scribble region to be generated, that is, scribble to be generated region anchor point, is denoted as (x, y), then Have: x=x0+x1.Y=y0+y1.
The coordinate information of the anchor point in the scribble region is absolute coordinate, i.e., the upper left corner at the interface of teacher side is that coordinate is former Point, the coordinate information of the anchor point are the positional relationship of the opposite coordinate origin.
The display methods in the scribble region of generation can be teacher side main interface layer, courseware interface layer and scribble region interface Display is laminated in layer, this three.Fig. 4 be the main interface layer of online class teacher side of the embodiment of the present invention two, courseware interface layer and The display structural schematic diagram of scribble region interface layer.As shown in figure 4, teacher side main interface layer and courseware interface layer are opaque Layer, scribble region interface layer are hyaline layer.
Fig. 5 is located at scribble area for operating pointer behind the generation scribble region of the online class teacher side of the embodiment of the present invention two Overseas interface schematic diagram.Fig. 6 is operating pointer behind the generation scribble region of the online class teacher side of the embodiment of the present invention two Interface schematic diagram in scribble region.
As shown in Figure 5 and Figure 6, the scribble region of generation is a fully transparent figure layer, is covered on the religion comprising courseware Teacher end entirety interface the top.When being scribbled, in this transparent figure layer draw brush track and text, for online class Student side for, the image of display be scribble and courseware region display area image superposition general image.
When the mobile mouse of user, whether the coordinate of real-time judge mouse is in scribble region, when mouse enters scribble region, Become paintbrush, into scribble state;When user's mouse removes scribble region, mouse becomes mouse state again by paintbrush, restores normal State.
S205c: if the supplemental characteristic in scribble region to be generated and preset not generating scribble zone correction values not wait scribble Match, then alarms.
Specific type of alarm can select mode appropriate according to demand, the present embodiment to this with no restriction, for example, can be with By teacher side feedback error, and the mode of user is prompted to alarm.
This method realizes automation and generates scribble region, and region of scribbling can adapt to courseware automatically, solve existing The scribble problem that region is fixed, adaptability is bad.Due to positional relationship data, the parameters relationship data in scribble region to be generated It is obtained Deng from courseware, so that part class when using the courseware, in the every courseware page or courseware of each courseware or courseware The position in the corresponding scribble region of part page, size are determined by courseware, when avoiding teacher using scribble function, require hand every time The dynamic cumbersome problem for opening scribble plug-in unit setting scribble region operation.It is made in addition, also avoiding full frame scribble in the prior art At scribble function and other operative interventions, use when other function need close scribble the problem of.
In addition, different coursewares, which may be implemented, in this method can correspond to different scribble regions;Alternatively, the same courseware Different courseware pages can also correspond to different scribble regions, improve the adaptability in scribble region.Again since courseware has independently Property, when generating scribble region, courseware provides the relative coordinate in corresponding scribble region to teacher side, so that generating in courseware region When mobile, scribble region can be relatively moved, and further improved the adaptability in scribble region, avoided the need for manually adjusting painting Crow region.
Embodiment three
The embodiment of the invention also provides a kind of computer storage medium, computer storage medium is stored with: for obtaining The instruction of courseware data;For determining the anchor point information in courseware region and the supplemental characteristic in courseware region according to courseware data Instruction;For obtaining the positional relationship data in preset scribble region to be generated and the finger of parameters relationship data according to courseware data It enables;For determining scribble region to be generated according to the supplemental characteristic in courseware region, the parameters relationship data in scribble region to be generated Supplemental characteristic instruction;For according to the positional relationship data of the anchor point information in courseware region, scribble region to be generated, to The supplemental characteristic for generating scribble region generates the instruction in the scribble region of courseware.
Optionally, for carrying out courseware displaying and/or courseware operation, the supplemental characteristic in courseware region includes class in courseware region The shape and size in part region.
Optionally, scribble regional location relation data to be generated is opposite with courseware region for scribble region to be generated Positional relationship;Scribble region parameter relation data to be generated, supplemental characteristic and courseware region for scribble region to be generated The mapping relations of supplemental characteristic.
Optionally, scribble region parameter data to be generated include the shape and size in scribble region to be generated.
Optionally, opposite position of the scribble regional location relation data to be generated for scribble region and courseware region to be generated The relationship of setting includes: the relative co-ordinate information of the anchor point information in scribble region to be generated and the anchor point information in courseware region.
Optionally, scribble region parameter relation data to be generated includes: shape map relation data and size mapping relations Data.
Optionally, shape map relation data is used to indicate the shape and the shape in courseware region in scribble region to be generated Corresponding relationship;Size mapping relations data are used to indicate the size pass corresponding with the size in courseware region in scribble region to be generated System.
It optionally, further include preset scribble region parameter Data correction value to be generated in courseware data, wherein to be generated Region parameter Data correction value of scribbling includes scribble region shape corrected value to be generated and scribble area size to be generated corrected value.
Optionally, for according to the positional relationship data of the anchor point information in courseware region, scribble region to be generated, to be generated At the supplemental characteristic in scribble region, the instruction for generating the scribble region of courseware includes: for obtaining preset scribble area to be generated The instruction of field parameter Data correction value;For when it is to be generated scribble region supplemental characteristic and scribble region parameter data to be generated When corrected value matches, according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, painting to be generated The supplemental characteristic in crow region generates the instruction in the scribble region of courseware;For when the supplemental characteristic in scribble region to be generated and pre- If scribble zone correction values to be generated when mismatching, the instruction alarmed.
Optionally, for when it is to be generated scribble region supplemental characteristic and scribble region parameter Data correction value phase to be generated When matching, according to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, scribble region to be generated Supplemental characteristic, generate the scribble region of courseware instruction include: for when it is to be generated scribble region shape be rectangle when, according to Width indicated by size in the supplemental characteristic in scribble region to be generated and height calculate the ratio of width to height in scribble region to be generated Instruction;For when it is to be generated scribble region the ratio of width to height and scribble area size's corrected value indicated by the ratio of width to height matching when, According to the anchor point information in courseware region, the positional relationship data in scribble region to be generated, the position in scribble region to be generated is determined Set the instruction of coordinate information;For according to the location coordinate information in determining scribble region to be generated, scribble region to be generated Supplemental characteristic generates the instruction in the scribble region of courseware.
Optionally, in obtaining courseware data, courseware data are the courseware data of at least one courseware page in courseware, or Courseware data are the courseware data of all courseware pages in courseware.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, the computer readable recording medium include for Any mechanism of the readable form storage of computer (such as computer) or transmission information.For example, machine readable media includes only Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light, Sound or the transmitting signal (for example, carrier wave, infrared signal, digital signal etc.) of other forms etc., which includes Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively Method described in certain parts of a embodiment or embodiment.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, some or all of the modules therein can be selected according to the actual needs It achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are without paying creative labor, it can It understands and implements.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.
It will be understood by those skilled in the art that the embodiment of the embodiment of the present invention can provide as method, apparatus (equipment) or Computer program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine soft The form of the embodiment of part and hardware aspect.Moreover, it wherein includes to calculate that the embodiment of the present invention, which can be used in one or more, Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the optical memory of machine usable program code Deng) on the form of computer program product implemented.
The embodiment of the present invention referring to according to the method for the embodiment of the present invention, device (equipment) and computer program product Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.

Claims (12)

1. a kind of scribble Area generation method based on courseware characterized by comprising
Obtain courseware data;
The anchor point information in courseware region and the supplemental characteristic in courseware region are determined according to the courseware data;
The positional relationship data and parameters relationship data in preset scribble region to be generated are obtained according to the courseware data;
It is determined according to the parameters relationship data of the supplemental characteristic in the courseware region, the scribble region to be generated described to be generated The supplemental characteristic in scribble region;
According to the anchor point information in the courseware region, the positional relationship data, described to be generated in the scribble region to be generated The supplemental characteristic in scribble region, generates the scribble region of the courseware.
2. the method according to claim 1, wherein the courseware region is for carrying out courseware displaying and/or class Part operation, the supplemental characteristic in the courseware region includes the shape and size in the courseware region.
3. the method according to claim 1, wherein the scribble regional location relation data to be generated, is used for The relative positional relationship in the scribble region and the courseware region to be generated;The scribble region parameter relationship number to be generated According to the mapping relations of the supplemental characteristic of the supplemental characteristic and courseware region for the scribble region to be generated.
4. according to the method described in claim 3, it is characterized in that, the scribble region parameter data to be generated include it is described to Generate the shape and size in scribble region.
5. according to the method described in claim 3, it is characterized in that, the scribble regional location relation data to be generated is used for institute Stating the relative positional relationship to be generated for scribbling region and the courseware region includes:
The relative co-ordinate information of the anchor point information of the anchor point information and courseware region in the scribble region to be generated.
6. according to the method described in claim 3, it is characterized in that, the scribble region parameter relation data to be generated includes: Shape map relation data and size mapping relations data.
7. according to the method described in claim 6, it is characterized in that, the shape map relation data is used to indicate painting to be generated The corresponding relationship of the shape of the shape and courseware region in crow region;The size mapping relations data are used to indicate scribble to be generated The corresponding relationship of the size of the size and courseware region in region.
8. the method according to claim 1, wherein further including preset scribble to be generated in the courseware data Region parameter Data correction value, wherein scribble region parameter Data correction value to be generated includes scribble region shape correction to be generated Value and scribble area size to be generated corrected value.
9. according to the method described in claim 8, it is characterized in that, according to the anchor point information in the courseware region, it is described to The positional relationship data in scribble region, the supplemental characteristic in the scribble region to be generated are generated, the scribble area of the courseware is generated Domain, comprising:
Obtain preset scribble region parameter Data correction value to be generated;
If the supplemental characteristic in the scribble region to be generated matches with the scribble region parameter Data correction value to be generated, According to the anchor point information in the courseware region, the positional relationship data in the scribble region to be generated, the scribble to be generated The supplemental characteristic in region generates the scribble region of courseware;
If the supplemental characteristic and the preset scribble zone correction values to be generated in the scribble region to be generated mismatch, into Row alarm.
10. according to the method described in claim 9, it is characterized in that, if supplemental characteristic and the institute in the scribble region to be generated It states scribble region parameter Data correction value to be generated to match, then according to the anchor point information in the courseware region, described to be generated At the positional relationship data in scribble region, the supplemental characteristic in the scribble region to be generated, the scribble region of courseware is generated, is wrapped It includes:
If the shape in the scribble region to be generated is rectangle, according to the ruler in the supplemental characteristic in the scribble region to be generated Very little indicated width and height calculate the ratio of width to height in the scribble region to be generated;
When it is described it is to be generated scribble region the ratio of width to height and scribble area size corrected value indicated by the ratio of width to height match when, According to the anchor point information in the courseware region, the positional relationship data in the scribble region to be generated, determine described to be generated The location coordinate information in scribble region;
It is raw according to the location coordinate information in the determining scribble region to be generated, the supplemental characteristic in the scribble region to be generated At the scribble region of courseware.
11. the method according to claim 1, wherein in the acquisition courseware data, the courseware data are The courseware data of at least one courseware page or the courseware data are the courseware data of all courseware pages in courseware in courseware.
12. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with: for obtaining courseware number According to instruction;For determining the finger of the anchor point information in courseware region and the supplemental characteristic in courseware region according to the courseware data It enables;For obtaining the positional relationship data and parameters relationship data in preset scribble region to be generated according to the courseware data Instruction;For according to the parameters relationship data determination of the supplemental characteristic in the courseware region, the scribble region to be generated The instruction of the supplemental characteristic in scribble region to be generated;For the anchor point information according to the courseware region, the painting to be generated The positional relationship data in crow region, it is described it is to be generated scribble region supplemental characteristic, generate the courseware scribble region finger It enables.
CN201810142164.6A 2018-02-11 2018-02-11 Courseware-based scribble area generation method and computer storage medium Active CN110148199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810142164.6A CN110148199B (en) 2018-02-11 2018-02-11 Courseware-based scribble area generation method and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810142164.6A CN110148199B (en) 2018-02-11 2018-02-11 Courseware-based scribble area generation method and computer storage medium

Publications (2)

Publication Number Publication Date
CN110148199A true CN110148199A (en) 2019-08-20
CN110148199B CN110148199B (en) 2021-06-04

Family

ID=67589013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810142164.6A Active CN110148199B (en) 2018-02-11 2018-02-11 Courseware-based scribble area generation method and computer storage medium

Country Status (1)

Country Link
CN (1) CN110148199B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473161A (en) * 2020-03-31 2021-10-01 腾讯科技(成都)有限公司 Live broadcast method, device, equipment and computer storage medium
CN113473161B (en) * 2020-03-31 2024-05-24 腾讯科技(成都)有限公司 Live broadcast method, device, equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368244A (en) * 2011-09-08 2012-03-07 广州市动景计算机科技有限公司 Page content alignment method, device and mobile terminal browser
US20150254388A1 (en) * 2012-12-27 2015-09-10 Synopsys, Inc. Determining a user-specified location in a graphical user interface of an electronic design automation tool
CN104915053A (en) * 2015-05-04 2015-09-16 北京奇艺世纪科技有限公司 Position determining method and device for interface controls
CN106020632A (en) * 2016-05-25 2016-10-12 青岛海信电器股份有限公司 Self-adaptive display method and self-adaptive display device for pages
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368244A (en) * 2011-09-08 2012-03-07 广州市动景计算机科技有限公司 Page content alignment method, device and mobile terminal browser
US20150254388A1 (en) * 2012-12-27 2015-09-10 Synopsys, Inc. Determining a user-specified location in a graphical user interface of an electronic design automation tool
CN104915053A (en) * 2015-05-04 2015-09-16 北京奇艺世纪科技有限公司 Position determining method and device for interface controls
CN106020632A (en) * 2016-05-25 2016-10-12 青岛海信电器股份有限公司 Self-adaptive display method and self-adaptive display device for pages
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473161A (en) * 2020-03-31 2021-10-01 腾讯科技(成都)有限公司 Live broadcast method, device, equipment and computer storage medium
CN113473161B (en) * 2020-03-31 2024-05-24 腾讯科技(成都)有限公司 Live broadcast method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN110148199B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US9049482B2 (en) System and method for combining computer-based educational content recording and video-based educational content recording
CN109698920A (en) It is a kind of that tutoring system is followed based on internet teaching platform
Wright Introduction to scientific visualization
CN106128196A (en) E-Learning system based on augmented reality and virtual reality and its implementation
CN107333164B (en) Image data processing method and device
US11528535B2 (en) Video file playing method and apparatus, and storage medium
CN110321054A (en) Writing brush person's handwriting method for drafting, device, equipment and readable storage medium storing program for executing
CN107331222B (en) A kind of image processing method and device
CN105677626B (en) The automatic generation method and device of the configuration file of courseware
US20160378272A1 (en) Systems and methods for providing multi-focus to applications for collaboration
CN105653510A (en) Electronic homework correction method, device and system
CN111459501A (en) SVG-based Web configuration picture storage and display system, method and medium
Gogula et al. Augmented reality in enhancing qualitative education
CN110148199A (en) Scribble Area generation method and computer storage medium based on courseware
CN109284487A (en) The method, apparatus of rendering data, electronic equipment and storage medium in canvas
Souza et al. A tool to study fractals in an interdisciplinary perspective
CN204720007U (en) A kind of multimedia education system
CN202077154U (en) Multi-window playing system
CN110321184A (en) Scene method for drawing map and computer storage medium
CN113570227A (en) Online education quality evaluation method, system, terminal and storage medium
KR101869247B1 (en) Method and system for providing auction service of the contents by using object-information-service based on spot images of video
JP4682323B2 (en) Education system
CN113554904A (en) Intelligent processing method and system for multi-mode collaborative education
CN110300297A (en) The image adjusting method and device of teaching demonstration
CN111158822A (en) Display interface control method and device, storage medium 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
GR01 Patent grant
GR01 Patent grant