WO2018171152A1 - Writing color setting method and apparatus - Google Patents

Writing color setting method and apparatus Download PDF

Info

Publication number
WO2018171152A1
WO2018171152A1 PCT/CN2017/103281 CN2017103281W WO2018171152A1 WO 2018171152 A1 WO2018171152 A1 WO 2018171152A1 CN 2017103281 W CN2017103281 W CN 2017103281W WO 2018171152 A1 WO2018171152 A1 WO 2018171152A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
angle
feature information
different
candidate
Prior art date
Application number
PCT/CN2017/103281
Other languages
French (fr)
Chinese (zh)
Inventor
李逸然
李纯冬
Original Assignee
广州视源电子科技股份有限公司
广州视臻信息科技有限公司
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 广州视源电子科技股份有限公司, 广州视臻信息科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018171152A1 publication Critical patent/WO2018171152A1/en

Links

Images

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

Definitions

  • Embodiments of the present invention relate to an application technology of an electronic device, and in particular, to a method and an apparatus for setting a color of a writing track.
  • the user can freely write, annotate, and modify the newly created page or the opened page of the electronic whiteboard, which is convenient for the user and widely used in classrooms and conferences.
  • multi-party sharing function can be supported, that is, multiple terminals are connected to the electronic whiteboard, and the interface in the electronic whiteboard can be simultaneously displayed in the interface of the terminal, and different users can perform in different terminal interfaces.
  • the operation realizes writing, annotating, and modifying the currently created page or the opened page of the electronic whiteboard.
  • the invention provides a method and a device for setting a color of a writing track to improve operation efficiency.
  • an embodiment of the present invention provides a method for setting a color of a writing track, the method comprising:
  • an embodiment of the present invention further provides a writing track color setting device, where the device includes:
  • An information acquiring module configured to acquire feature information of an input device for detecting a writing track and a current background color
  • a color distribution module configured to allocate different candidate colors to the different feature information from the color distribution model based on the current background color
  • a trajectory display module configured to display, according to the candidate color, a writing trajectory generated by the input device corresponding to the feature information.
  • the invention acquires feature information and current background color of an input device for detecting a writing track; assigns different candidate colors to different feature information from the color distribution model based on the current background color; and displays corresponding feature information according to the selected color
  • the writing track generated by the input device can automatically set different writing track colors for different input devices, and the writing track color of each input device is different from the background color, which is convenient for distinguishing the writing content of different users, reducing the frequency or reducing the frequency manually set by the user. Limit the user's writing area to improve operational efficiency and user experience.
  • FIG. 1 is a flowchart of a method for setting a color of a writing track according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of establishing connection of multiple input devices according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic diagram of establishing connection of multiple input devices according to Embodiment 1 of the present invention.
  • FIG. 4 is a flowchart of a method for setting a color of a writing track according to Embodiment 2 of the present invention.
  • Figure 5 is a schematic view of an HSV color wheel in Embodiment 2 of the present invention.
  • FIG. 6 is a flowchart of a method for setting a color of a writing track according to Embodiment 3 of the present invention.
  • Figure 7 is a block diagram showing the structure of a writing track color setting device in Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of a method for setting a color of a writing track according to a first embodiment of the present invention.
  • the embodiment is applicable to displaying a color of a different writing track for a writing track of different input devices, and the method can be set by the color of the writing track.
  • the device is executed, and specifically includes the following steps:
  • Step 110 Acquire feature information of an input device for detecting a writing track and a current background color.
  • the input device may be a smart terminal such as a smart phone or a tablet computer.
  • the smart terminal has a writing track input function, such as a touch screen, and obtains a writing track by detecting and acquiring operation information on the touch screen.
  • the touch screen can be a touch screen of a capacitive touch screen, a resistive touch screen or an infrared touch screen, which is not limited by the present invention.
  • infrared touch screens infrared touch screen tops
  • an infrared emitting tube and an infrared receiving tube are mounted on the outer frame of the circuit board, and the touch points are detected and positioned by an infrared matrix densely arranged in the horizontal and vertical directions.
  • the writing track is compared with the writing track in the standard writing track library to obtain a corresponding standard writing track. If the writing track is text, the writing and writing in the writing track can be written.
  • the standard Song text in the track library is compared, and the corresponding standard Song text in the writing track library is displayed in the corresponding position.
  • operations such as dragging, enlarging or reducing are performed in the input device to facilitate input of the writing track.
  • the feature information of the input device may be an InteRnational Mobile Equipment Identity (IMEI), a Central Processing Unit (CPU) serial number, and a Media Access Control Address (MAC Address). Or information such as an Internet Protocol Address (IP Address), or a combination of multiple information or specific form information generated according to a specific algorithm according to a plurality of information, so that the feature information can uniquely identify the input device as an input device identifier.
  • IMEI InteRnational Mobile Equipment Identity
  • CPU Central Processing Unit
  • MAC Address Media Access Control Address
  • IP Address Internet Protocol Address
  • IP Address Internet Protocol Address
  • the color used in the current background can be determined, that is, the current background color is obtained.
  • the number of each color in the acquired color may be counted in the current screen area. If the proportion of all the pixels in the prime point or the preset area is greater than the third preset threshold, the color is determined as the current background color, and the background color is avoided to ensure the distribution efficiency of the selected color. .
  • the current background color can also be obtained by reading the pre-stored current background color.
  • the preset background can be obtained when the preset background is used.
  • the corresponding background color can also be obtained by reading the pre-stored current background color.
  • the current background is the content displayed on the display screen other than the writing track.
  • the input devices for detecting the writing trajectory establish a connection in a certain manner, and after the connection is established, the same picture can be displayed in each input device.
  • an initiating connection application is installed in an input device
  • an application corresponding to the initiating connection application is installed in the other input device
  • an input device that initiates the connection application is installed and another device to which the corresponding application is installed
  • the input device respectively starts the respective application, or after the application is started and the corresponding password is input, the other input device to which the corresponding application is installed is connected with the input device on which the connection application is launched, and after the connection is established, the connection is installed.
  • the other input device corresponding to the application can display the screen displayed by the input device with the initiated connection application installed in real time, and the input device installed with the initiated connection application can display the writing track generated by all the input devices in real time;
  • the same application is installed, and all input devices that launch the application or enter the same password in the application establish a connection.
  • Step 120 Assign different candidate colors to different feature information from the color distribution model based on the current background color.
  • the color distribution model is a preset color model including a plurality of colors to be selected, such as a hue circle or a color list.
  • the candidate color different from the current background color may be obtained from the color model, and different candidate colors may be assigned to the feature information of different input devices, thereby realizing automatic feature information for different input devices. Different candidate colors are assigned, and the assigned candidate color is different from the current background color.
  • the candidate color in the color distribution model is assigned to the feature information of the input device, the candidate color is marked in the color model, so that the next time the allocation process is performed, the color distribution model may be directly excluded from the color distribution model.
  • the assigned color to be selected does not need to traverse the entire color to improve the distribution efficiency.
  • the writing track color of the input device can also be manually set.
  • the candidate color in the color model is placed in the form of a list on the operation interface of the input device, the color distribution model is input according to the user's selection in the list.
  • the feature information of the device is assigned a correspondingly selected color to be manually set, so that the user can set the color of the desired writing track by himself.
  • Step 130 Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
  • the feature information of the input device is used as the input device identifier to uniquely identify the input device.
  • the different feature colors are assigned different candidate colors, if the writing track is detected on the input device, the feature information of the input device is allocated.
  • the candidate color displays the writing trajectory produced by the input device.
  • FIG. 2 and FIG. 3 are schematic diagrams of establishing connection of multiple input devices according to the embodiment. In Fig. 2, different colors are indicated by different lines. Both input device B and input device C establish a connection with input device A, and input device A, input device B, and input device C are assigned a dotted line.
  • the current display content of the input device A, the input device B, and the input device C are a certain window and a writing track detected by each input device, wherein the ellipse, the rectangle, and the circle are the display device A and the input device, respectively. B and the writing track detected by the input device C, and the rest are the contents of the window.
  • the input device D establishes a connection with the input device A, acquiring the feature information of the input device D and the background color in the window, and assigning the input device D to the input device A and the input device B from the color distribution model based on the current background color. , input device C and the desired color of the current background color. As shown in FIG.
  • a dotted line is assigned to the feature information of the input device D.
  • the color represented by the input device D is a triangle, and the writing track detected by the input device D is displayed at the corresponding position of the display screen of each input device, and the color to be selected is allocated according to the feature information of the input device D.
  • the writing trajectories of different users can be easily distinguished by different colors. In a meeting or classroom, each user can write at any position of the input device, even if the writing track display positions generated by different input devices have overlapping portions, the different track colors can quickly distinguish the writing tracks detected by different input devices.
  • the flag of the candidate color assigned to the feature information of the input device is removed, so that the candidate color can be re-allocated to other input devices.
  • the embodiment of the present invention obtains feature information and current background color of an input device for detecting a written trajectory; assigns different candidate colors to different feature information from the color distribution model based on the current background color; and displays feature information according to the to-be-selected color.
  • the writing track generated by the corresponding input device can automatically set different writing track colors for different input devices, and the writing track color of each input device is different from the background color, which is convenient for distinguishing the writing content of different users, and reducing the frequency manually set by the user. Or reduce the restrictions on the user's writing area, improve operational efficiency and user experience.
  • FIG. 4 is a flow chart of a method for writing track color according to Embodiment 2 of the present invention. This embodiment is optimized on the basis of the first embodiment. As shown in FIG. 4, the method includes:
  • Step 210 Acquire feature information of an input device for detecting a writing track and a current background color.
  • Step 220 Obtain an angle of the current background color in the hue circle.
  • the hue ring refers to a ring composed of different colors, such as a twelve-phase phase ring, a twenty-four color phase ring or a forty-eight color phase ring.
  • FIG 5 is a schematic illustration of an HSV color wheel in which the colors are not shown.
  • HSV Human Saturation Value
  • the circle represents the hue
  • an independent triangle represents the saturation and hue
  • the hue can be determined in the ring first.
  • determine the saturation and hue in the triangle so that one color can be uniquely determined.
  • a hue representing the hue in the HSV color wheel is used as the hue circle, and the values of saturation and hue are set, so that a hue loop can be uniquely determined.
  • the hue ring the colors corresponding to any different angles are different, and more colors to be selected are available, and different input colors can be assigned to more input devices.
  • a preset background may be pre-stored, and the background color of each preset background is in the hue circle. The angle is recorded, and the angle of the current background color in the hue circle can be obtained according to the preset background selected by the user.
  • the angle is marked to avoid assigning the candidate color corresponding to the angle on the hue ring to the feature information of the input device.
  • the writing track color of the input device can be manually set so that the user can set the desired writing track color by himself.
  • the candidate color on the hue circle is displayed on the screen of the input device in a color list, and the candidate color selected by the user in the color list is assigned to the feature information of the input device, and the candidate color is obtained at the same time.
  • the angle is marked in the angle in the hue circle.
  • Step 230 Assign different angles to different feature information from the reference angle according to the first preset angle interval.
  • a plurality of reference angles may be provided, such as a first reference angle of ⁇ 1, a second reference angle of ⁇ 2, . . ., and an nth reference angle of ⁇ n. Then, any reference angle can be automatically assigned to the feature information of the first input device, and when the angle is assigned to the feature information of the next input device, the feature information of the input device can be assigned with the feature information of the previous input device.
  • the angles differ by an angle of the first predetermined angular interval in a clockwise or counterclockwise direction, thereby avoiding assigning similar candidate colors to different feature information.
  • the first input device can be the first boot application or the first input device that enters a password in the launched application.
  • the first reference angle may be determined according to an angle assigned by the feature information of the first input device. If the angle is automatically assigned to the feature information of the first input device or the angle of the candidate color set by the user is assigned to the feature information of the first input device, the feature information of the first input device is allocated. The angle is determined as the first reference angle.
  • the second reference angle can be at the first reference angle
  • the preset reference angle is increased. If the preset angle is 15 degrees or -15 degrees, the third reference angle may be half of the sum of the first reference angle and the second reference angle, and the fourth reference angle may be the first reference. The half of the sum of the angle and the third reference angle is the same, and the nth reference angle is half of the sum of the first reference angle and the n-1th reference angle, so that a plurality of reference angles can be automatically obtained.
  • the input device establishing the connection when disconnected, its feature information assignment angle is removed from the marked angle so that the angle can be reallocated to the input device establishing the connection.
  • its feature information assignment angle is removed from the marked angle so that the angle can be reallocated to the input device establishing the connection. For example, whenever there is an input device establishing a connection, starting from the first reference angle, according to the first preset angular interval, it is sequentially detected whether the angle has been marked, and if the angle is not marked, the angle is assigned to the input. Feature information of the device, if the angle has been marked, continue to detect whether the next angle that is different from the angle by the first preset angle interval has been marked until an unmarked angle is detected, and assign it to the input device Characteristic information.
  • Step 240 If the angle differs from the angle of the current background color in the hue circle by less than the second preset angle interval or the angle is an already allocated angle, the angle is filtered and the angle is re-assigned to the feature information according to the reference angle.
  • an angle is assigned to the feature information of the input device, it is determined whether the angle is different from the angle of the acquired background color in the hue circle by less than the second preset angular interval or an already assigned angle to avoid assigning the feature information to the background color. Or the color information of the other input device is similar or the same, wherein the second preset angle interval is smaller than the first preset angle interval.
  • the corresponding angles in the hue circle have all been allocated from the reference angle according to the first preset angle interval, different angles are assigned to different feature information in order from the next reference angle.
  • the first preset angle interval is 30°
  • the angle is the clockwise feature information.
  • the angle allocated to the first input device is 0°
  • the first reference angle is 0°
  • the second reference angle is 15°
  • the third reference angle is half of the sum of the first reference angle and the second reference angle, that is, 7.5°, when the connection is established on the thirteenth input device, it can be detected that the first reference angle is 0°, and the difference is 30° in order. If the corresponding angles have been all allocated, it is determined whether the second reference angle 15° is different from the angle of the current background color in the hue circle, and if not, the second reference angle 15° is assigned to the feature information.
  • Step 250 Assign a candidate color corresponding to an angle assigned to different feature information in the hue circle to different feature information.
  • the color corresponding to the angle of the ring representing the hue in the HSV color wheel can be calculated by the following formula:
  • the hue h, the saturation s, and the hue v are known, and (r, g, b) can be obtained, so that the h h can be different under the condition that the saturation s and the hue v are constant. Different angles corresponding to the selected face The color is assigned to the corresponding feature information.
  • Step 260 Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
  • the embodiment of the present invention can assign different angles to the feature information of different input devices, conveniently distinguishing the writing content of different users, reducing the frequency manually set by the user or reducing the limitation on the writing area of the user. Improve operational efficiency and user experience. And any of the different angles in the hue circle correspond to different colors, and more input colors can be assigned to more input devices.
  • FIG. 6 is a flowchart of a method for setting a color of a writing track according to Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above, as shown in FIG. 6, the method includes:
  • the RGB value in the present invention is composed of three values of R value, G value and B value, and can be expressed as (R, G, B), where R represents the luminance of the red component and G represents the green component. Brightness, B represents the brightness of the blue component. Normally, R, G, and B each have 256 levels of brightness, represented by the numbers 0-255. Any color can be represented by an RGB value (R, G, B). For example, the RGB value of pure red is (255, 0, 0), and the RGB value of pure white is (255, 255, 255).
  • the color to be selected in the to-be-selected color list may include all the colors of the RGB values, so that any writing track color can be assigned to the input device, or the color to be selected in the saved candidate color list is a preset RGB value, which satisfies the basic Writing track color assignment requirements.
  • the RGB values of any two candidate colors in the candidate color list are different from each other by a first preset threshold.
  • the color may be started from a color of RGB (0, 0, 0). , in turn, R, G, and B are incremented by 25 RGB values corresponding colors into the candidate color list, or from RGB is (0,0,0) color, and R, G, and B are sequentially incremented by 30 RGB. The color corresponding to the value is placed in the list of selected colors.
  • the colors to be selected in the selected color list can be contrasted with each other, and the similar colors are filtered out, thereby making different input devices
  • the color of the writing track is easier to distinguish and enhance the user experience.
  • the color to be selected that differs from the RGB value of the background color by less than the first preset threshold is filtered, and to avoid assigning to different input devices.
  • the same candidate color is selected, and the assigned candidate color in the candidate color list is filtered out. Thereby obtaining a first candidate color list.
  • the dotted line in Figure 2 Indicates yellow and dashed lines If it is pure black, the color of the current window is yellow and pure black.
  • the corresponding RGB values are (255, 255, 0) and (0, 0, 0) respectively.
  • R, G, and B of the color to be selected in the candidate color list may be filtered out with any of the acquired background colors whose R, G, and B corresponding differences are less than 50. If the RGB value of (255, 215, 0) is the candidate color in the candidate list, the difference between R, G, and B and the yellow background R, G, and B in the acquired background color is 0.
  • the gold with RGB values of (255, 215, 0) is filtered out of the candidate list.
  • the R, G, and B of the color to be selected in the candidate color list and any two differences between the R, G, and B corresponding to any acquired background color may be smaller than the second preset threshold. Select the color filter. If the RGB value is (205, 205, 205), the silver color is the candidate color in the candidate list, because R, G, and B in the RGB value correspond to the pure black R, G, and B in the acquired background color.
  • the difference is in the order of 45, 45 and 0. wherein the difference between R and G is less than 50, the silver with the RGB value of (205, 205, 205) can be filtered out from the list of selected colors.
  • the list of candidate colors may be established by a dictionary operation in Python, wherein the dictionary is also referred to as an associative array or a hash table, and the dictionary appears in pairs by a key and a corresponding key value, and will be selected in the list of colors to be selected.
  • the RGB values corresponding to the selected colors are used as keys in the dictionary, and the key values corresponding to each key default to 0. If a candidate color is filtered out, the corresponding RGB value of the candidate color can be modified.
  • the color to be selected in the candidate color list does not include colors that are used more frequently, such as white and black, thereby reducing the situation in which the input device is assigned a color similar to the background color.
  • Step 330 Assign different candidate colors to different feature information from the first candidate color list.
  • the feature information of any candidate color to be assigned to the input device may be automatically selected from the candidate colors in the first candidate color list. For example, the feature information of any candidate color assignment value input device is selected from the to-be-selected colors whose corresponding key values are not 0.
  • Step 340 Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
  • the difference between the RGB values of any two candidate colors in the candidate color list is greater than the first preset threshold, and the characteristic information of each input device is assigned a contrasting color to make it easier to write to different input devices.
  • the trajectory is distinguished by avoiding the background color or the input device by filtering the candidate color and the assigned candidate color that are different from the RGB value of the current background color by the second preset threshold from the candidate color list.
  • Other input devices are similar or the same color to be selected, which automatically assigns different candidate colors to different input devices, which is convenient for distinguishing the writing content of different users, without manual setting or reducing restrictions on the user writing area, improving efficiency and user experience. .
  • FIG. 7 is a schematic structural diagram of a writing track color setting apparatus according to Embodiment 4 of the present invention.
  • the above device is used to implement the writing track color setting method provided by the above embodiment, and the device includes: an information acquiring module 410, a color assigning module 420, and a track display module 430. among them,
  • An information acquiring module 410 configured to acquire feature information and a current background color of an input device for detecting a writing track
  • the color distribution module 420 is configured to allocate different candidate colors to the different feature information from the color distribution model based on the current background color;
  • the trajectory display module 430 is configured to display a writing trajectory generated by the input device corresponding to the feature information according to the candidate color.
  • the color distribution model is a hue circle
  • the color distribution module includes:
  • An angle obtaining unit configured to acquire an angle of a current background color in the hue circle
  • An angle allocating unit configured to assign different angles to different pieces of the feature information from the reference angle according to the first preset angle interval
  • An angle filtering unit configured to: if the angle differs from an angle of the current background color in the hue circle by less than a second predetermined angular interval or the angle is an already allocated angle, the angle is filtered and Resolving the angle of the feature information by the reference angle;
  • a color distribution unit configured to allocate, to the different feature information, the to-be-selected color corresponding to the angle allocated in the hue circle for the different feature information.
  • the angle allocation unit is further configured to:
  • the corresponding angle in the hue circle is full
  • different angles are assigned to different feature information from the next reference angle.
  • the color distribution model is a candidate color list, and the RGB values of any two candidate colors in the candidate color list are different from each other by a first preset threshold;
  • the color distribution module includes:
  • a color filtering unit configured to filter the to-be-selected color and the selected candidate color that are different from the RGB value of the current background color by the first preset threshold from the candidate color list, to obtain a first candidate color list
  • a color distribution unit configured to allocate different candidate colors to different feature information from the first candidate color list.
  • the current background color is a color in the current background in which the proportion of the screen area is greater than a third preset threshold.
  • the above device may perform the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of performing the above method.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a writing color setting method and apparatus. The method comprises: obtaining feature information and current background colors of input devices used for detecting writing; allocating, based on the current background colors, different candidate colors from a color distribution model for the different feature information; and displaying, according to the candidate colors, the writing generated by the input devices corresponding to the feature information. The technical solution of the present invention can automatically allocate different writing types for different input devices, thus improving operation efficiency and user experience.

Description

一种书写轨迹颜色设置方法及装置Writing track color setting method and device 技术领域Technical field
本发明实施例涉及电子设备应用技术,尤其涉及一种书写轨迹颜色设置方法及装置。Embodiments of the present invention relate to an application technology of an electronic device, and in particular, to a method and an apparatus for setting a color of a writing track.
背景技术Background technique
随着电子设备技术的发展,具有触摸功能的电子设备得到普及,其中,电子白板也得到了快速发展。With the development of electronic device technology, electronic devices with touch functions have been popularized, and electronic whiteboards have also been rapidly developed.
在电子白板中,用户可以在电子白板新建的页面或打开的页面中,随意进行书写、批注和修改等操作,为用户带来方便,广泛应用于课堂和会议等场景中。且目前的电子白板中,可支持多方共享功能,即支持多个终端与电子白板连接,在终端的界面中可同时显示电子白板中的界面,且不同的用户可通过在不同的终端界面中进行操作,实现对在电子白板当前新建的页面或打开的页面进行书写、批注和修改等操作。In the electronic whiteboard, the user can freely write, annotate, and modify the newly created page or the opened page of the electronic whiteboard, which is convenient for the user and widely used in classrooms and conferences. In the current electronic whiteboard, multi-party sharing function can be supported, that is, multiple terminals are connected to the electronic whiteboard, and the interface in the electronic whiteboard can be simultaneously displayed in the interface of the terminal, and different users can perform in different terminal interfaces. The operation realizes writing, annotating, and modifying the currently created page or the opened page of the electronic whiteboard.
然而在多方共享白板时,往往只能通过不同的用户分别在打开的界面的不同区域进行书写等操作或通过用户手动来切换自己对应设备中的书写轨迹颜色,从而来区分不同用户书写的内容,这样的操作方式会限制用户书写区域或需要用户自己来判别其他用户所使用的书写轨迹颜色,从而选择自己所使用的书写轨迹颜色,操作效率低,降低用户体验。However, when a whiteboard is shared by multiple parties, it is often possible to distinguish between written content of different users by different users in different areas of the opened interface or by manually switching the color of the writing track in the corresponding device by the user. Such an operation mode may limit the user's writing area or require the user to discriminate the color of the writing track used by other users, thereby selecting the color of the writing track used by the user, which is inefficient in operation and reduces the user experience.
发明内容 Summary of the invention
本发明提供一种书写轨迹颜色设置方法及装置,提高操作效率。The invention provides a method and a device for setting a color of a writing track to improve operation efficiency.
第一方面,本发明实施例提供了一种书写轨迹颜色设置方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for setting a color of a writing track, the method comprising:
获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;Obtaining feature information and a current background color of an input device for detecting a written trajectory;
基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色;Allocating different candidate colors to different feature information from the color distribution model based on the current background color;
根据所述待选颜色显示所述特征信息对应的输入设备产生的书写轨迹。And displaying a writing trajectory generated by the input device corresponding to the feature information according to the candidate color.
第二方面,本发明实施例还提供了一种书写轨迹颜色设置装置,该装置包括:In a second aspect, an embodiment of the present invention further provides a writing track color setting device, where the device includes:
信息获取模块,用于获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;An information acquiring module, configured to acquire feature information of an input device for detecting a writing track and a current background color;
颜色分配模块,用于基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色;a color distribution module, configured to allocate different candidate colors to the different feature information from the color distribution model based on the current background color;
轨迹显示模块,用于根据所述待选颜色显示所述特征信息对应的输入设备产生的书写轨迹。And a trajectory display module, configured to display, according to the candidate color, a writing trajectory generated by the input device corresponding to the feature information.
本发明通过获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;基于当前背景颜色从颜色分布模型中为不同的特征信息分配不同的待选颜色;根据待选颜色显示特征信息对应的输入设备产生的书写轨迹,可自动为不同的输入设备设置不同的书写轨迹颜色,且各输入设备的书写轨迹颜色与背景颜色不同,方便区分不同用户的书写内容,减少用户手动设置的频率或减少对于用户书写区域的限制,提高操作效率与用户体验。The invention acquires feature information and current background color of an input device for detecting a writing track; assigns different candidate colors to different feature information from the color distribution model based on the current background color; and displays corresponding feature information according to the selected color The writing track generated by the input device can automatically set different writing track colors for different input devices, and the writing track color of each input device is different from the background color, which is convenient for distinguishing the writing content of different users, reducing the frequency or reducing the frequency manually set by the user. Limit the user's writing area to improve operational efficiency and user experience.
附图说明 DRAWINGS
图1为本发明实施例一中的一种书写轨迹颜色设置方法的流程图;1 is a flowchart of a method for setting a color of a writing track according to Embodiment 1 of the present invention;
图2是本发明实施例一中的提供的多个输入设备建立连接的示意图;2 is a schematic diagram of establishing connection of multiple input devices according to Embodiment 1 of the present invention;
图3是本发明实施例一中的提供的多个输入设备建立连接的示意图;3 is a schematic diagram of establishing connection of multiple input devices according to Embodiment 1 of the present invention;
图4是本发明实施例二中的一种书写轨迹颜色设置方法的流程图;4 is a flowchart of a method for setting a color of a writing track according to Embodiment 2 of the present invention;
图5是本发明实施例二中的HSV色轮的示意图;Figure 5 is a schematic view of an HSV color wheel in Embodiment 2 of the present invention;
图6是本发明实施例三中的一种书写轨迹颜色设置方法的流程图;6 is a flowchart of a method for setting a color of a writing track according to Embodiment 3 of the present invention;
图7是本发明实施例四中的一种书写轨迹颜色设置装置的结构框图。Figure 7 is a block diagram showing the structure of a writing track color setting device in Embodiment 4 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
实施例一Embodiment 1
图1为本发明实施例一提供的一种书写轨迹颜色设置方法的流程图,本实施例可适用于需对不同输入设备的书写轨迹显示不同书写轨迹颜色情况,该方法可以由书写轨迹颜色设置装置来执行,具体包括如下步骤:1 is a flowchart of a method for setting a color of a writing track according to a first embodiment of the present invention. The embodiment is applicable to displaying a color of a different writing track for a writing track of different input devices, and the method can be set by the color of the writing track. The device is executed, and specifically includes the following steps:
步骤110、获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色。Step 110: Acquire feature information of an input device for detecting a writing track and a current background color.
其中,输入设备可为智能手机、平板电脑等智能终端,所述智能终端具备书写轨迹输入功能,如具备触摸屏,通过检测并获取在触摸屏上操作信息得到书写轨迹。其中,触摸屏可为电容式触摸屏、电阻式触摸屏或红外式触摸屏等各类触摸屏,本发明对此不做限定。如对于红外式触摸屏,红外式触摸屏上装 有电路板外框,在电路板外框上装有红外线发射管与红外接收管,通过水平和竖直方向上密布的红外线矩阵来检测并定位触摸点。当有手指、笔或任何可阻挡光线的物体在触摸屏上触摸时,会阻挡该位置的水平和竖直方向上的两条红外线,则可确定触摸点的位置,并经计算得到触摸点在触摸屏上的位置,从而得到书写轨迹。得到书写轨迹后,将得到的书写轨迹显示于计算得到触摸点在触摸屏上的位置。The input device may be a smart terminal such as a smart phone or a tablet computer. The smart terminal has a writing track input function, such as a touch screen, and obtains a writing track by detecting and acquiring operation information on the touch screen. The touch screen can be a touch screen of a capacitive touch screen, a resistive touch screen or an infrared touch screen, which is not limited by the present invention. For infrared touch screens, infrared touch screen tops There is a circuit board frame, and an infrared emitting tube and an infrared receiving tube are mounted on the outer frame of the circuit board, and the touch points are detected and positioned by an infrared matrix densely arranged in the horizontal and vertical directions. When a finger, a pen, or any object that blocks light is touched on the touch screen, two infrared rays in the horizontal and vertical directions of the position are blocked, and the position of the touched point can be determined, and the touched point is calculated on the touch screen. The position on the upper side, thus getting the writing track. After the writing track is obtained, the obtained writing track is displayed on the position where the touch point is calculated on the touch screen.
示例性的,可在得到书写轨迹后,将书写轨迹与标准书写轨迹库中的书写轨迹进行对比,获得对应的标准书写轨迹,如若书写轨迹为文字,则可将书写轨迹中的文字与标准书写轨迹库中的标准宋体文字进行对比,将书写轨迹库中对应的标准宋体文字显示在对应位置中。For example, after the writing track is obtained, the writing track is compared with the writing track in the standard writing track library to obtain a corresponding standard writing track. If the writing track is text, the writing and writing in the writing track can be written. The standard Song text in the track library is compared, and the corresponding standard Song text in the writing track library is displayed in the corresponding position.
优选的,可在输入设备中进行拖动、放大或缩小等操作以便于输入书写轨迹。Preferably, operations such as dragging, enlarging or reducing are performed in the input device to facilitate input of the writing track.
示例性的,输入设备的特征信息可以为国际移动设备标识(InteRnational MoBile Equipment Identity,IMEI)、中央处理器(Central Processing Unit,CPU)序列号、媒体访问控制地址(Media Access Control Address,MAC Address)或互联网协议地址(Internet Protocol Address,IP Address)等信息,还可为多个信息的组合或根据多个信息按照特定算法生成的特定形式信息,从而特征信息可作为输入设备标识唯一地标识输入设备。Exemplarily, the feature information of the input device may be an InteRnational Mobile Equipment Identity (IMEI), a Central Processing Unit (CPU) serial number, and a Media Access Control Address (MAC Address). Or information such as an Internet Protocol Address (IP Address), or a combination of multiple information or specific form information generated according to a specific algorithm according to a plurality of information, so that the feature information can uniquely identify the input device as an input device identifier. .
通过获取输入设备的当前屏幕区域中每个像素点或预设区域内每个像素点的颜色,可确定当前背景中所使用的颜色,即获取当前背景颜色。By obtaining the color of each pixel in the current screen area of the input device or each pixel in the preset area, the color used in the current background can be determined, that is, the current background color is obtained.
优选的,在获取输入设备的当前屏幕区域中每个像素点或预设区域内每个像素点的颜色后,可统计获取的颜色中每个颜色的个数在当前屏幕区域所有像 素点或预设区域内所有像素点中所占的比例,则若所占比例大于第三预设阈值,将该颜色确定为当前背景颜色,避免背景颜色过多,保证待选颜色的分配效率。Preferably, after obtaining the color of each pixel in each pixel point or the preset area in the current screen area of the input device, the number of each color in the acquired color may be counted in the current screen area. If the proportion of all the pixels in the prime point or the preset area is greater than the third preset threshold, the color is determined as the current background color, and the background color is avoided to ensure the distribution efficiency of the selected color. .
示例性的,还可通过读取预存的当前背景颜色获取当前背景颜色,如可选预存有预设背景,并保存其对应的背景颜色,则当使用预设背景时,可获取该预设背景对应的背景颜色。For example, the current background color can also be obtained by reading the pre-stored current background color. For example, if the preset background is pre-stored and the corresponding background color is saved, the preset background can be obtained when the preset background is used. The corresponding background color.
需要说明的是,当前背景为除书写轨迹之外的显示画面中所显示的内容。It should be noted that the current background is the content displayed on the display screen other than the writing track.
优选的,各用于检测书写轨迹的输入设备之间以一定的方式建立连接,建立连接后各输入设备中可显示相同的画面。Preferably, the input devices for detecting the writing trajectory establish a connection in a certain manner, and after the connection is established, the same picture can be displayed in each input device.
对于各输入设备建立连接的实现方式有很多,本发明对此不做限定。如通过在一输入设备中安装有发起连接应用程序,在其他输入设备中安装有与该发起连接应用程序对应的应用程序,若安装有发起连接应用程序的输入设备与安装有对应应用程序的其他输入设备分别启动各自应用程序,或在启动应用程序并输入相应的口令后,则安装有对应应用程序的其他输入设备均与安装有发起连接应用程序的输入设备建立连接,建立连接后,安装有对应应用程序的其他输入设备可实时显示安装有发起连接应用程序的输入设备所显示的画面,且安装有发起连接应用程序的输入设备可实时显示所有输入设备产生的书写轨迹;再如各输入设备安装有相同的应用程序,所有启动该应用程序或在该应用程序中输入相同口令的输入设备均建立连接。There are many implementations for establishing a connection for each input device, which is not limited by the present invention. If an initiating connection application is installed in an input device, an application corresponding to the initiating connection application is installed in the other input device, if an input device that initiates the connection application is installed and another device to which the corresponding application is installed The input device respectively starts the respective application, or after the application is started and the corresponding password is input, the other input device to which the corresponding application is installed is connected with the input device on which the connection application is launched, and after the connection is established, the connection is installed. The other input device corresponding to the application can display the screen displayed by the input device with the initiated connection application installed in real time, and the input device installed with the initiated connection application can display the writing track generated by all the input devices in real time; The same application is installed, and all input devices that launch the application or enter the same password in the application establish a connection.
步骤120、基于当前背景颜色从颜色分布模型中为不同的特征信息分配不同的待选颜色。Step 120: Assign different candidate colors to different feature information from the color distribution model based on the current background color.
其中,颜色分布模型为包括多种待选颜色的预设颜色模型,如色相环或颜色列表等。 The color distribution model is a preset color model including a plurality of colors to be selected, such as a hue circle or a color list.
基于获取的当前背景颜色,可从颜色模型中获取与当前背景颜色不同的待选颜色,并为不同的输入设备的特征信息分配不同的待选颜色,从而实现自动为不同的输入设备的特征信息分配不同的待选颜色,且所分配的待选颜色与当前背景颜色不同。Based on the obtained current background color, the candidate color different from the current background color may be obtained from the color model, and different candidate colors may be assigned to the feature information of different input devices, thereby realizing automatic feature information for different input devices. Different candidate colors are assigned, and the assigned candidate color is different from the current background color.
优选的,在将颜色分布模型中的待选颜色分配至输入设备的特征信息后,在颜色模型中将该待选颜色进行标记,以在下次分配过程中,可直接从颜色分布模型中排除已分配的待选颜色,无须遍历整个颜色,提高分配效率。Preferably, after the candidate color in the color distribution model is assigned to the feature information of the input device, the candidate color is marked in the color model, so that the next time the allocation process is performed, the color distribution model may be directly excluded from the color distribution model. The assigned color to be selected does not need to traverse the entire color to improve the distribution efficiency.
优选的,还可手动设置输入设备的书写轨迹颜色,如将颜色模型中的待选颜色以列表的形式置于输入设备的操作界面,则根据用户在列表中的选择从颜色分布模型中为输入设备的特征信息分配手动设置的对应的待选颜色,以使用户可自行设置所需要书写轨迹颜色。Preferably, the writing track color of the input device can also be manually set. For example, if the candidate color in the color model is placed in the form of a list on the operation interface of the input device, the color distribution model is input according to the user's selection in the list. The feature information of the device is assigned a correspondingly selected color to be manually set, so that the user can set the color of the desired writing track by himself.
步骤130、根据待选颜色显示特征信息对应的输入设备产生的书写轨迹。Step 130: Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
输入设备的特征信息作为输入设备标识唯一地标识输入设备,在为不同的特征信息分配不同的待选颜色后,若在输入设备上检测到书写轨迹,则以该输入设备的特征信息被分配的待选颜色显示该输入设备产生的书写轨迹。图2和图3为本实施例提供的多个输入设备建立连接的示意图。图2中,以不同的线条来表示不同的颜色。输入设备B和输入设备C均与输入设备A建立连接,输入设备A、输入设备B以及输入设备C被分配虚线
Figure PCTCN2017103281-appb-000001
虚线
Figure PCTCN2017103281-appb-000002
和实线
Figure PCTCN2017103281-appb-000003
所表示的待选颜色,输入设备A、输入设备B以及输入设备C当前显示内容为某一窗口及各输入设备检测到的书写轨迹,其中,椭圆、矩形和圆分别为显示设备A、输入设备B和输入设备C检测到的书写轨迹,其余均为窗口中的内容。当输入设备D与输入设备A建立连接后,获取输入设备D的特征信息以及窗口 中的背景颜色,基于当前的背景颜色,从颜色分布模型中为输入设备D分配与输入设备A、输入设备B、输入设备C以及当前背景颜色不同的待选颜色。如图3所示,为输入设备D的特征信息分配虚线
Figure PCTCN2017103281-appb-000004
所代表的颜色,若输入设备D产生的书写轨迹为三角形,则在各输入设备显示画面的对应位置显示输入设备D检测得到的书写轨迹,并根据为输入设备D的特征信息分配的待选颜色显示该书写轨迹,则通过不同颜色可容易区分不同用户的书写轨迹。在会议或课堂中,各用户可在输入设备的任意位置进行书写,即使不同输入设备产生的书写轨迹显示位置有交叉重叠部分,通过不同轨迹颜色即可快速区分不同输入设备检测到的书写轨迹,无需对书写区域进行限制,利于会议或课堂人员的互动,提高会议或课堂效率,在会议或课堂结束后,则可依据书写轨迹颜色快速找出某一书写轨迹的提供者,方便会议或课堂人员记录,为后续工作提供便利。且用户无需自己判别其他用户所使用的颜色,提高用户体验。
The feature information of the input device is used as the input device identifier to uniquely identify the input device. After the different feature colors are assigned different candidate colors, if the writing track is detected on the input device, the feature information of the input device is allocated. The candidate color displays the writing trajectory produced by the input device. FIG. 2 and FIG. 3 are schematic diagrams of establishing connection of multiple input devices according to the embodiment. In Fig. 2, different colors are indicated by different lines. Both input device B and input device C establish a connection with input device A, and input device A, input device B, and input device C are assigned a dotted line.
Figure PCTCN2017103281-appb-000001
dotted line
Figure PCTCN2017103281-appb-000002
And solid line
Figure PCTCN2017103281-appb-000003
The displayed color to be selected, the current display content of the input device A, the input device B, and the input device C are a certain window and a writing track detected by each input device, wherein the ellipse, the rectangle, and the circle are the display device A and the input device, respectively. B and the writing track detected by the input device C, and the rest are the contents of the window. After the input device D establishes a connection with the input device A, acquiring the feature information of the input device D and the background color in the window, and assigning the input device D to the input device A and the input device B from the color distribution model based on the current background color. , input device C and the desired color of the current background color. As shown in FIG. 3, a dotted line is assigned to the feature information of the input device D.
Figure PCTCN2017103281-appb-000004
The color represented by the input device D is a triangle, and the writing track detected by the input device D is displayed at the corresponding position of the display screen of each input device, and the color to be selected is allocated according to the feature information of the input device D. When the writing track is displayed, the writing trajectories of different users can be easily distinguished by different colors. In a meeting or classroom, each user can write at any position of the input device, even if the writing track display positions generated by different input devices have overlapping portions, the different track colors can quickly distinguish the writing tracks detected by different input devices. There is no need to limit the writing area, which is conducive to the interaction of the meeting or classroom personnel, improve the efficiency of the meeting or classroom, and at the end of the meeting or class, you can quickly find out the provider of a writing track according to the color of the writing track, and facilitate the meeting or classroom staff. Records to facilitate follow-up work. And the user does not need to discriminate the colors used by other users to improve the user experience.
优选的,若输入设备断开连接,如关闭对应应用程序,则将为该输入设备的特征信息分配的待选颜色的标记去除,以使将该待选颜色可重新被分配给其他输入设备。Preferably, if the input device is disconnected, such as closing the corresponding application, the flag of the candidate color assigned to the feature information of the input device is removed, so that the candidate color can be re-allocated to other input devices.
本发明实施例通过获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;基于当前背景颜色从颜色分布模型中为不同的特征信息分配不同的待选颜色;根据待选颜色显示特征信息对应的输入设备产生的书写轨迹,可自动为不同的输入设备设置不同的书写轨迹颜色,且各输入设备的书写轨迹颜色与背景颜色不同,方便区分不同用户的书写内容,减少用户手动设置的频率或减少对于用户书写区域的限制,提高操作效率与用户体验。 The embodiment of the present invention obtains feature information and current background color of an input device for detecting a written trajectory; assigns different candidate colors to different feature information from the color distribution model based on the current background color; and displays feature information according to the to-be-selected color. The writing track generated by the corresponding input device can automatically set different writing track colors for different input devices, and the writing track color of each input device is different from the background color, which is convenient for distinguishing the writing content of different users, and reducing the frequency manually set by the user. Or reduce the restrictions on the user's writing area, improve operational efficiency and user experience.
实施例二Embodiment 2
图4是本发明实施例二提供的一种书写轨迹颜色方法的流程图。本实施例为在实施例一的基础上进行优化,如图4所示,该方法包括:4 is a flow chart of a method for writing track color according to Embodiment 2 of the present invention. This embodiment is optimized on the basis of the first embodiment. As shown in FIG. 4, the method includes:
步骤210、获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色。Step 210: Acquire feature information of an input device for detecting a writing track and a current background color.
步骤220、获取当前背景颜色在色相环中的角度。Step 220: Obtain an angle of the current background color in the hue circle.
其中,色相环指由不同的颜色构成的圆环,如十二色相环、二十四色相环或四十八色相环等。The hue ring refers to a ring composed of different colors, such as a twelve-phase phase ring, a twenty-four color phase ring or a forty-eight color phase ring.
图5为HSV色轮的示意图,其中颜色未示出。如图5所示,在HSV(Hue Saturation Value,色相饱和度色调)色轮中,圆环表示色相,一个独立的三角形表示饱和度和色调,在选择颜色时,可先在圆环中确定色相,并在三角形中确定饱和度和色调,从而可唯一确定一个颜色。Figure 5 is a schematic illustration of an HSV color wheel in which the colors are not shown. As shown in Figure 5, in the HSV (Hue Saturation Value) color wheel, the circle represents the hue, an independent triangle represents the saturation and hue, and when the color is selected, the hue can be determined in the ring first. And determine the saturation and hue in the triangle so that one color can be uniquely determined.
优选的,将HSV色轮中表示色相的圆环作为色相环,并设定饱和度和色调的值,则可唯一确定一色相环。使用该色相环,任意不相同的角度之间对应的颜色均不同,可选待选颜色较多,可为较多的输入设备分配不同的待选颜色。Preferably, a hue representing the hue in the HSV color wheel is used as the hue circle, and the values of saturation and hue are set, so that a hue loop can be uniquely determined. With the hue ring, the colors corresponding to any different angles are different, and more colors to be selected are available, and different input colors can be assigned to more input devices.
若已知某一颜色,即已知(r,g,b),其在色相环中的角度可由下述公式计算得到:If a certain color is known, ie (r, g, b) is known, its angle in the hue circle can be calculated by the following formula:
Figure PCTCN2017103281-appb-000005
Figure PCTCN2017103281-appb-000005
示例性的,可预存有预设背景,并对每个预设背景的背景颜色在色相环中 的角度进行记录,则根据用户选择的预设背景,可获取当前背景颜色在色相环中的角度。Exemplarily, a preset background may be pre-stored, and the background color of each preset background is in the hue circle. The angle is recorded, and the angle of the current background color in the hue circle can be obtained according to the preset background selected by the user.
优选的,获取当前背景颜色在色相环中的角度后,将该角度进行标记,以避免将色相环上该角度对应的待选颜色分配给输入设备的特征信息。Preferably, after obtaining the angle of the current background color in the hue circle, the angle is marked to avoid assigning the candidate color corresponding to the angle on the hue ring to the feature information of the input device.
优选的,可手动设置输入设备的书写轨迹颜色,以使用户可自行设置所需要书写轨迹颜色。如可选将色相环上的待选颜色以颜色列表形式显示于输入设备的屏幕上,将用户在颜色列表中选择的待选颜色分配给该输入设备的特征信息,同时可得到该待选颜色在色相环中的角度,对该角度进行标记。Preferably, the writing track color of the input device can be manually set so that the user can set the desired writing track color by himself. For example, the candidate color on the hue circle is displayed on the screen of the input device in a color list, and the candidate color selected by the user in the color list is assigned to the feature information of the input device, and the candidate color is obtained at the same time. The angle is marked in the angle in the hue circle.
步骤230、按照第一预设角度间隔,从参考角度依次为不同的特征信息分配不同的角度。Step 230: Assign different angles to different feature information from the reference angle according to the first preset angle interval.
示例性的,可设有多个参考角度,如第一参考角度为α1,第二参考角度为α2,…,第n参考角度为αn。则可自动将任一参考角度分配给第一个输入设备的特征信息,当为下一输入设备的特征信息分配角度时,可为该输入设备的特征信息分配与上一输入设备的特征信息分配的角度在顺时针或逆时针方向上相差第一预设角度间隔的角度,从而避免将相近的待选颜色分配给不同的特征信息。Illustratively, a plurality of reference angles may be provided, such as a first reference angle of α1, a second reference angle of α2, . . ., and an nth reference angle of αn. Then, any reference angle can be automatically assigned to the feature information of the first input device, and when the angle is assigned to the feature information of the next input device, the feature information of the input device can be assigned with the feature information of the previous input device. The angles differ by an angle of the first predetermined angular interval in a clockwise or counterclockwise direction, thereby avoiding assigning similar candidate colors to different feature information.
其中,第一个输入设备可为第一个启动应用程序或第一个在启动的应用程序中输入口令的输入设备等。The first input device can be the first boot application or the first input device that enters a password in the launched application.
优选的,第一参考角度可根据第一个输入设备的特征信息所分配的角度而定。如自动为第一个输入设备的特征信息分配任一角度或根据用户自行设置的待选颜色为第一个输入设备的特征信息分配的角度,则将为第一个输入设备的特征信息分配的角度确定为第一参考角度。第二参考角度可为在第一参考角度 的基础上增加预设角度,如预设角度为15度或-15度,则第三参考角度可为第一参考角度与第二参考角度之和的一半,第四参考角度可为第一参考角度与第三参考角度之和的一半以此类推,第n参考角度为第一参考角度与第n-1参考角度之和的一半,从而可自动得到多个参考角度。Preferably, the first reference angle may be determined according to an angle assigned by the feature information of the first input device. If the angle is automatically assigned to the feature information of the first input device or the angle of the candidate color set by the user is assigned to the feature information of the first input device, the feature information of the first input device is allocated. The angle is determined as the first reference angle. The second reference angle can be at the first reference angle The preset reference angle is increased. If the preset angle is 15 degrees or -15 degrees, the third reference angle may be half of the sum of the first reference angle and the second reference angle, and the fourth reference angle may be the first reference. The half of the sum of the angle and the third reference angle is the same, and the nth reference angle is half of the sum of the first reference angle and the n-1th reference angle, so that a plurality of reference angles can be automatically obtained.
优选的,当建立连接的输入设备断开连接后,则将为其特征信息分配角度从被标记的角度中去除,以使该角度可重新分配给建立连接的输入设备。如每当有输入设备建立连接时,均从第一参考角度开始,按照第一预设角度间隔,依次检测该角度是否已被标记,如该角度未被标记,则将该角度分配给该输入设备的特征信息,若该角度已被标记,则继续检测与该角度相差第一预设角度间隔的下一角度是否已被标记,直至检测到未被标记的角度,将其分配给该输入设备的特征信息。Preferably, when the input device establishing the connection is disconnected, its feature information assignment angle is removed from the marked angle so that the angle can be reallocated to the input device establishing the connection. For example, whenever there is an input device establishing a connection, starting from the first reference angle, according to the first preset angular interval, it is sequentially detected whether the angle has been marked, and if the angle is not marked, the angle is assigned to the input. Feature information of the device, if the angle has been marked, continue to detect whether the next angle that is different from the angle by the first preset angle interval has been marked until an unmarked angle is detected, and assign it to the input device Characteristic information.
步骤240、若角度与当前背景颜色在色相环中的角度相差小于第二预设角度间隔或角度为已经分配的角度,则将该角度滤除并根据参考角度重新为特征信息分配角度。Step 240: If the angle differs from the angle of the current background color in the hue circle by less than the second preset angle interval or the angle is an already allocated angle, the angle is filtered and the angle is re-assigned to the feature information according to the reference angle.
在为输入设备的特征信息分配角度时,判断该角度是否与获取的背景颜色在色相环中的角度相差小于第二预设角度间隔或为已经分配的角度,以避免为特征信息分配与背景颜色或其他输入设备的特征信息相近或相同的颜色,其中第二预设角度间隔小于第一预设角度间隔。When an angle is assigned to the feature information of the input device, it is determined whether the angle is different from the angle of the acquired background color in the hue circle by less than the second preset angular interval or an already assigned angle to avoid assigning the feature information to the background color. Or the color information of the other input device is similar or the same, wherein the second preset angle interval is smaller than the first preset angle interval.
优选的,若按照第一预设角度间隔,从参考角度开始,色相环中对应角度已全部分配,则从下一参考角度依次为不同的特征信息分配不同角度。Preferably, if the corresponding angles in the hue circle have all been allocated from the reference angle according to the first preset angle interval, different angles are assigned to different feature information in order from the next reference angle.
示例性的,第一预设角度间隔为30°,按照顺时针为特征信息分配角度,为第一个输入设备分配的角度为0°,则第一参考角度为0°,第二参考角度为15°, 第三参考角度为第一参考角度与第二参考角度之和的一半,即7.5°,则在第13个输入设备建立连接时,可检测到从第一参考角度0°开始,依次相差30°的对应角度已全部分配,则判断第二参考角度15°与当前背景颜色在色相环中的角度相差是否小于第二预设角度间隔,若否,则为其特征信息分配第二参考角度15°,若是,则继续判断与第二参考角度15°在顺时针方向上相差第一预设角度间隔的角度45°与当前背景颜色在色相环中的角度相差是否小于第二预设角度间隔或是否为已经分配的角度,直至检测到与当前背景颜色在色相环中的角度相差大于或等于第二预设角度间隔且未被分配的角度,将该角度分配给建立连接的输入设备的特征信息。Exemplarily, the first preset angle interval is 30°, and the angle is the clockwise feature information. When the angle allocated to the first input device is 0°, the first reference angle is 0°, and the second reference angle is 15°, The third reference angle is half of the sum of the first reference angle and the second reference angle, that is, 7.5°, when the connection is established on the thirteenth input device, it can be detected that the first reference angle is 0°, and the difference is 30° in order. If the corresponding angles have been all allocated, it is determined whether the second reference angle 15° is different from the angle of the current background color in the hue circle, and if not, the second reference angle 15° is assigned to the feature information. If yes, proceed to determine whether the angle of the first predetermined angle interval between the first reference angle and the second reference angle of 15° is 45°, and whether the angle of the current background color in the hue circle is different from the second preset angle interval or whether For the already assigned angle, until the angle at which the angle of the current background color in the hue circle differs by more than or equal to the second predetermined angular interval and is not assigned is detected, the angle is assigned to the feature information of the input device establishing the connection.
步骤250、将色相环中为不同的特征信息分配的角度对应的待选颜色分配至不同的特征信息。Step 250: Assign a candidate color corresponding to an angle assigned to different feature information in the hue circle to different feature information.
其中,HSV色轮中表示色相的圆环的角度所对应的颜色,可由下述公式计算得到:The color corresponding to the angle of the ring representing the hue in the HSV color wheel can be calculated by the following formula:
Figure PCTCN2017103281-appb-000006
p=v×(1-s);
Figure PCTCN2017103281-appb-000006
p=v×(1-s);
q=v×(1-f×s);t=v×(1-(1-f)×s)q=v×(1-f×s); t=v×(1-(1-f)×s)
Figure PCTCN2017103281-appb-000007
Figure PCTCN2017103281-appb-000007
其中h∈[0,360),s∈[0,1],v∈[0,1],h、s和v分别为色相、饱和度和色调。Where h ∈ [0, 360), s ∈ [0, 1], v ∈ [0, 1], h, s, and v are hue, saturation, and hue, respectively.
根据上述公式,已知色相h、饱和度s和色调v,即可得(r,g,b),则可将在饱和度s和色调v在一定的情况下,将不同的色相h,即不同的角度对应的待选颜 色分配给对应的特征信息。According to the above formula, the hue h, the saturation s, and the hue v are known, and (r, g, b) can be obtained, so that the h h can be different under the condition that the saturation s and the hue v are constant. Different angles corresponding to the selected face The color is assigned to the corresponding feature information.
步骤260、根据待选颜色显示特征信息对应的输入设备产生的书写轨迹。Step 260: Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
本发明实施例通过使用色相环作为颜色分布模型,可为不同的输入设备的特征信息分配不同的角度,方便区分不同用户的书写内容,减少用户手动设置的频率或减少对于用户书写区域的限制,提高操作效率与用户体验。且色相环中任意不相同的角度所对应的颜色均不同,可为更多的输入设备分配不同的待选颜色。By using the hue circle as the color distribution model, the embodiment of the present invention can assign different angles to the feature information of different input devices, conveniently distinguishing the writing content of different users, reducing the frequency manually set by the user or reducing the limitation on the writing area of the user. Improve operational efficiency and user experience. And any of the different angles in the hue circle correspond to different colors, and more input colors can be assigned to more input devices.
实施例三Embodiment 3
图6为本发明实施例三提供的一种书写轨迹颜色设置方法的流程图。本实施例为在上述的基础上进行优化,如图6所示,该方法包括:FIG. 6 is a flowchart of a method for setting a color of a writing track according to Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above, as shown in FIG. 6, the method includes:
310、获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色。310. Acquire feature information of an input device for detecting a writing track and a current background color.
320、将与当前背景颜色的RGB值相差小于第一预设阈值的待选颜色和已分配的待选颜色从待选颜色列表中滤除,得到第一待选颜色列表。320. Filter the to-be-selected color and the assigned candidate color that are different from the RGB value of the current background color by less than the first preset threshold from the candidate color list to obtain a first candidate color list.
需要说明的是,本发明中的RGB值由R值、G值和B值三个数值组成,可表示为(R,G,B),其中,R代表红色分量的亮度,G代表绿色分量的亮度,B代表蓝色分量的亮度。通常情况下,R、G和B各有256级亮度,用数字0-255表示。任何一个颜色都可以由一个RGB值(R,G,B)来表示。如纯红色的RGB值为(255,0,0),纯白色的RGB值为(255,255,255)。It should be noted that the RGB value in the present invention is composed of three values of R value, G value and B value, and can be expressed as (R, G, B), where R represents the luminance of the red component and G represents the green component. Brightness, B represents the brightness of the blue component. Normally, R, G, and B each have 256 levels of brightness, represented by the numbers 0-255. Any color can be represented by an RGB value (R, G, B). For example, the RGB value of pure red is (255, 0, 0), and the RGB value of pure white is (255, 255, 255).
其中,待选颜色列表中待选颜色可以包括所有RGB值的颜色,以便可为输入设备分配任意书写轨迹颜色,或保存的待选颜色列表中待选颜色为预设RGB值的颜色,满足基本书写轨迹颜色分配需求。 The color to be selected in the to-be-selected color list may include all the colors of the RGB values, so that any writing track color can be assigned to the input device, or the color to be selected in the saved candidate color list is a preset RGB value, which satisfies the basic Writing track color assignment requirements.
优选的,待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈值,如第一预设阈值为20,则可从RGB值为(0,0,0)的颜色开始,依次将R、G和B均递增25的RGB值对应颜色放入待选颜色列表中,或从RGB为(0,0,0)颜色开始,依次将R、G和B均递增30的RGB值对应的颜色放入待选颜色列表中。通过将待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈值,可使待选颜色列表中的待选颜色相互对比鲜明,滤除相近的颜色,从而使不同输入设备的书写轨迹颜色更加容易区分,提高用户体验。Preferably, the RGB values of any two candidate colors in the candidate color list are different from each other by a first preset threshold. If the first preset threshold is 20, the color may be started from a color of RGB (0, 0, 0). , in turn, R, G, and B are incremented by 25 RGB values corresponding colors into the candidate color list, or from RGB is (0,0,0) color, and R, G, and B are sequentially incremented by 30 RGB. The color corresponding to the value is placed in the list of selected colors. By comparing the RGB values of any two candidate colors in the candidate color list by more than the first preset threshold, the colors to be selected in the selected color list can be contrasted with each other, and the similar colors are filtered out, thereby making different input devices The color of the writing track is easier to distinguish and enhance the user experience.
为避免为不同的输入设备分配与背景颜色相同或相近的待选颜色,则将与背景颜色的RGB值相差小于第一预设阈值的待选颜色滤除,以及为避免为不同的输入设备分配相同的待选颜色,则将待选颜色列表中已分配的待选颜色滤除。从而得到第一待选颜色列表。In order to avoid assigning the same color to the input device that is the same or similar to the background color, the color to be selected that differs from the RGB value of the background color by less than the first preset threshold is filtered, and to avoid assigning to different input devices. The same candidate color is selected, and the assigned candidate color in the candidate color list is filtered out. Thereby obtaining a first candidate color list.
示例性的,图2中虚线
Figure PCTCN2017103281-appb-000008
表示黄色及虚线
Figure PCTCN2017103281-appb-000009
表示纯黑色,则获取当前窗口的颜色中有黄色和纯黑色,其对应的RGB值分别为(255,255,0)和(0,0,0),若第二预设阈值为50,则可将待选颜色列表中待选颜色的R、G和B与任一获取的背景颜色中R、G和B对应差值均小于50的待选颜色滤除。如若RGB值为(255,215,0)的金色为待选列表中的待选颜色,由于其R、G和B与获取的背景色中黄色的R、G和B对应的差值依次为0、40和0,三个差值均小于50,因此将RGB值为(255,215,0)的金色从待选列表中滤除。又如,还可将待选颜色列表中待选颜色的R、G和B与任一获取的背景色中R、G和B对应差值中任意两个差值小于第二预设阈值的待选颜色滤除。如RGB值为(205,205,205)的银色为待选列表中的待选颜色,则由于其RGB值中的R、G和B与获取的背景色中纯黑色的R、G和B对应差值依次为45、45和0,其 中,R和G对应差值均小于50,则可将RGB值为(205,205,205)的银色从待选颜色列表中滤除。
Illustrative, the dotted line in Figure 2
Figure PCTCN2017103281-appb-000008
Indicates yellow and dashed lines
Figure PCTCN2017103281-appb-000009
If it is pure black, the color of the current window is yellow and pure black. The corresponding RGB values are (255, 255, 0) and (0, 0, 0) respectively. If the second preset threshold is 50, then R, G, and B of the color to be selected in the candidate color list may be filtered out with any of the acquired background colors whose R, G, and B corresponding differences are less than 50. If the RGB value of (255, 215, 0) is the candidate color in the candidate list, the difference between R, G, and B and the yellow background R, G, and B in the acquired background color is 0. , 40 and 0, all three differences are less than 50, so the gold with RGB values of (255, 215, 0) is filtered out of the candidate list. For example, the R, G, and B of the color to be selected in the candidate color list and any two differences between the R, G, and B corresponding to any acquired background color may be smaller than the second preset threshold. Select the color filter. If the RGB value is (205, 205, 205), the silver color is the candidate color in the candidate list, because R, G, and B in the RGB value correspond to the pure black R, G, and B in the acquired background color. The difference is in the order of 45, 45 and 0. wherein the difference between R and G is less than 50, the silver with the RGB value of (205, 205, 205) can be filtered out from the list of selected colors.
示例性的,待选颜色列表可为通过Python中的字典操作来建立,其中,字典也被称作关联数组或哈希表,字典由键和对应键值成对出现,将待选颜色列表中待选颜色对应的RGB值作为字典中的键,每个键对应的键值默认为0。若将某待选颜色滤除,则可修改该待选颜色RGB值对应键值。Exemplarily, the list of candidate colors may be established by a dictionary operation in Python, wherein the dictionary is also referred to as an associative array or a hash table, and the dictionary appears in pairs by a key and a corresponding key value, and will be selected in the list of colors to be selected. The RGB values corresponding to the selected colors are used as keys in the dictionary, and the key values corresponding to each key default to 0. If a candidate color is filtered out, the corresponding RGB value of the candidate color can be modified.
优选的,待选颜色列表中的待选颜色不包括使用频率较高的颜色,例如白色和黑色,从而减少为输入设备分配与背景颜色中相近颜色的情况。Preferably, the color to be selected in the candidate color list does not include colors that are used more frequently, such as white and black, thereby reducing the situation in which the input device is assigned a color similar to the background color.
步骤330、从第一待选颜色列表中将不同的待选颜色分配至不同的特征信息。Step 330: Assign different candidate colors to different feature information from the first candidate color list.
得到第一待选颜色列表后,可从第一待选颜色列表中的待选颜色中自动选取任意待选颜色分配给输入设备的特征信息。如从对应键值不为0的待选颜色中选取任意的待选颜色分配值输入设备的特征信息。After obtaining the first candidate color list, the feature information of any candidate color to be assigned to the input device may be automatically selected from the candidate colors in the first candidate color list. For example, the feature information of any candidate color assignment value input device is selected from the to-be-selected colors whose corresponding key values are not 0.
步骤340、根据待选颜色显示特征信息对应的输入设备产生的书写轨迹。Step 340: Display a writing trajectory generated by the input device corresponding to the feature information according to the color to be selected.
本实施例通过将待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈值,为各输入设备的特征信息分配对比鲜明的颜色,以更容易对不同输入设备产生的书写轨迹加以区分,通过将与当前背景颜色的RGB值相差小于第二预设阈值的待选颜色和已分配的待选颜色从待选颜色列表中滤除,避免为输入设备分配与背景色或与其他输入设备相近或相同的待选颜色,实现自动为不同输入设备分配不同的待选颜色,方便区分不同用户的书写内容,无需手动进行设置或减少对于用户书写区域的限制,提高效率与用户体验。 In this embodiment, the difference between the RGB values of any two candidate colors in the candidate color list is greater than the first preset threshold, and the characteristic information of each input device is assigned a contrasting color to make it easier to write to different input devices. The trajectory is distinguished by avoiding the background color or the input device by filtering the candidate color and the assigned candidate color that are different from the RGB value of the current background color by the second preset threshold from the candidate color list. Other input devices are similar or the same color to be selected, which automatically assigns different candidate colors to different input devices, which is convenient for distinguishing the writing content of different users, without manual setting or reducing restrictions on the user writing area, improving efficiency and user experience. .
实施例四Embodiment 4
图7为本发明实施例四提供的一种书写轨迹颜色设置装置的结构示意图。上述装置用于实现上述实施例提供的书写轨迹颜色设置方法,该装置包括:信息获取模块410、颜色分配模块420以及轨迹显示模块430。其中,FIG. 7 is a schematic structural diagram of a writing track color setting apparatus according to Embodiment 4 of the present invention. The above device is used to implement the writing track color setting method provided by the above embodiment, and the device includes: an information acquiring module 410, a color assigning module 420, and a track display module 430. among them,
信息获取模块410,用于获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;An information acquiring module 410, configured to acquire feature information and a current background color of an input device for detecting a writing track;
颜色分配模块420,用于基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色;The color distribution module 420 is configured to allocate different candidate colors to the different feature information from the color distribution model based on the current background color;
轨迹显示模块430,用于根据所述待选颜色显示所述特征信息对应的输入设备产生的书写轨迹。The trajectory display module 430 is configured to display a writing trajectory generated by the input device corresponding to the feature information according to the candidate color.
上述方案中,可选的是,所述颜色分布模型为色相环;In the above solution, optionally, the color distribution model is a hue circle;
所述颜色分配模块包括:The color distribution module includes:
角度获取单元,用于获取当前背景颜色在所述色相环中的角度;An angle obtaining unit, configured to acquire an angle of a current background color in the hue circle;
角度分配单元,用于按照第一预设角度间隔,从参考角度依次为不同的所述特征信息分配不同的角度;An angle allocating unit, configured to assign different angles to different pieces of the feature information from the reference angle according to the first preset angle interval;
角度滤除单元,用于若所述角度与当前背景颜色在所述色相环中的角度相差小于第二预设角度间隔或所述角度为已经分配的角度,则将该角度滤除并根据所述参考角度重新为所述特征信息分配角度;An angle filtering unit, configured to: if the angle differs from an angle of the current background color in the hue circle by less than a second predetermined angular interval or the angle is an already allocated angle, the angle is filtered and Resolving the angle of the feature information by the reference angle;
颜色分配单元,用于将所述色相环中为不同的所述特征信息分配的角度对应的待选颜色分配至所述不同的所述特征信息。And a color distribution unit, configured to allocate, to the different feature information, the to-be-selected color corresponding to the angle allocated in the hue circle for the different feature information.
上述方案中,可选的是,所述角度分配单元还用于:In the above solution, optionally, the angle allocation unit is further configured to:
若按照第一预设角度间隔,从参考角度开始,所述色相环中对应角度已全 部分配,则从下一参考角度依次为不同的所述特征信息分配不同角度。According to the first preset angle interval, starting from the reference angle, the corresponding angle in the hue circle is full For partial matching, different angles are assigned to different feature information from the next reference angle.
上述方案中,可选的是,所述颜色分布模型为待选颜色列表,所述待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈值;In the above solution, the color distribution model is a candidate color list, and the RGB values of any two candidate colors in the candidate color list are different from each other by a first preset threshold;
所述颜色分配模块包括:The color distribution module includes:
颜色滤除单元,用于将与当前背景颜色的RGB值相差小于第一预设阈值的待选颜色和已分配的待选颜色从待选颜色列表中滤除,得到第一待选颜色列表;a color filtering unit, configured to filter the to-be-selected color and the selected candidate color that are different from the RGB value of the current background color by the first preset threshold from the candidate color list, to obtain a first candidate color list;
颜色分配单元,用于从所述第一待选颜色列表中将不同的待选颜色分配至不同的特征信息。a color distribution unit, configured to allocate different candidate colors to different feature information from the first candidate color list.
上述方案中,可选的是,所述当前背景颜色为当前背景中颜色中占屏幕区域的比例大于第三预设阈值的颜色。In the above solution, optionally, the current background color is a color in the current background in which the proportion of the screen area is greater than a third preset threshold.
上述装置可执行本发明任意实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的方法。The above device may perform the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of performing the above method. For technical details not fully described in this embodiment, reference may be made to the method provided by any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。 Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.

Claims (10)

  1. 一种书写轨迹颜色设置方法,其特征在于,包括:A writing track color setting method, comprising:
    获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;Obtaining feature information and a current background color of an input device for detecting a written trajectory;
    基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色;Allocating different candidate colors to different feature information from the color distribution model based on the current background color;
    根据所述待选颜色显示所述特征信息对应的输入设备产生的书写轨迹。And displaying a writing trajectory generated by the input device corresponding to the feature information according to the candidate color.
  2. 根据权利要求1所述的方法,其特征在于,所述颜色分布模型为色相环;The method according to claim 1, wherein said color distribution model is a hue circle;
    所述基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色包括:The assigning different candidate colors to the different feature information from the color distribution model based on the current background color includes:
    获取当前背景颜色在所述色相环中的角度;Obtaining an angle of a current background color in the hue circle;
    按照第一预设角度间隔,从参考角度依次为不同的所述特征信息分配不同的角度;Assigning different angles to the different feature information from the reference angle according to the first preset angle interval;
    若所述角度与当前背景颜色在所述色相环中的角度相差小于第二预设角度间隔或所述角度为已经分配的角度,则将该角度滤除并根据所述参考角度重新为所述特征信息分配角度;If the angle differs from the angle of the current background color in the hue circle by less than the second predetermined angular interval or the angle is an already assigned angle, the angle is filtered and re-described according to the reference angle Feature information allocation angle;
    将所述色相环中为不同的所述特征信息分配的角度对应的待选颜色分配至所述不同的所述特征信息。Assigning a candidate color corresponding to an angle assigned to the different feature information in the hue circle to the different feature information.
  3. 根据权利要求2所述的方法,其特征在于,所述按照第一预设角度间隔,从参考角度依次为不同的所述特征信息分配不同的角度之后,还包括:The method according to claim 2, wherein after the assigning different angles to the different feature information from the reference angle according to the first preset angular interval, the method further comprises:
    若按照第一预设角度间隔,从参考角度开始,所述色相环中对应角度已全部分配,则从下一参考角度依次为不同的所述特征信息分配不同角度。If the corresponding angles in the hue circle have all been allocated from the reference angle according to the first preset angle interval, different angles are assigned to the different feature information from the next reference angle.
  4. 根据权利要求1所述的方法,其特征在于,所述颜色分布模型为待选颜色列表,所述待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈 值;The method according to claim 1, wherein the color distribution model is a candidate color list, and RGB values of any two candidate colors in the candidate color list differ by more than a first preset threshold. value;
    所述基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色包括:The assigning different candidate colors to the different feature information from the color distribution model based on the current background color includes:
    将与当前背景颜色的RGB值相差小于第一预设阈值的待选颜色和已分配的待选颜色从待选颜色列表中滤除,得到第一待选颜色列表;Selecting a to-be-selected color and an allocated candidate color that are different from the RGB value of the current background color by less than the first preset threshold from the candidate color list to obtain a first candidate color list;
    从所述第一待选颜色列表中将不同的待选颜色分配至不同的特征信息。Different candidate colors are assigned to different feature information from the first candidate color list.
  5. 根据权利要求1所述的方法,其特征在于,所述当前背景颜色为当前背景中颜色中占屏幕区域的比例大于第三预设阈值的颜色。The method according to claim 1, wherein the current background color is a color in the current background in which the proportion of the screen area is greater than a third preset threshold.
  6. 一种书写轨迹颜色设置装置,其特征在于,包括:A writing track color setting device, comprising:
    信息获取模块,用于获取用于检测书写轨迹的输入设备的特征信息和当前背景颜色;An information acquiring module, configured to acquire feature information of an input device for detecting a writing track and a current background color;
    颜色分配模块,用于基于所述当前背景颜色从颜色分布模型中为不同的所述特征信息分配不同的待选颜色;a color distribution module, configured to allocate different candidate colors to the different feature information from the color distribution model based on the current background color;
    轨迹显示模块,用于根据所述待选颜色显示所述特征信息对应的输入设备产生的书写轨迹。And a trajectory display module, configured to display, according to the candidate color, a writing trajectory generated by the input device corresponding to the feature information.
  7. 根据权利要求6所述的装置,其特征在于,所述颜色分布模型为色相环;The apparatus according to claim 6, wherein said color distribution model is a hue circle;
    所述颜色分配模块包括:The color distribution module includes:
    角度获取单元,用于获取当前背景颜色在所述色相环中的角度;An angle obtaining unit, configured to acquire an angle of a current background color in the hue circle;
    角度分配单元,用于按照第一预设角度间隔,从参考角度依次为不同的所述特征信息分配不同的角度;An angle allocating unit, configured to assign different angles to different pieces of the feature information from the reference angle according to the first preset angle interval;
    角度滤除单元,用于若所述角度与当前背景颜色在所述色相环中的角度相差小于第二预设角度间隔或所述角度为已经分配的角度,则将该角度滤除并根 据所述参考角度重新为所述特征信息分配角度;An angle filtering unit, configured to filter the angle if the angle is different from the angle of the current background color in the hue circle by less than a second predetermined angular interval or the angle is an already allocated angle Reassigning the feature information to the feature information according to the reference angle;
    颜色分配单元,用于将所述色相环中为不同的所述特征信息分配的角度对应的待选颜色分配至所述不同的所述特征信息。And a color distribution unit, configured to allocate, to the different feature information, the to-be-selected color corresponding to the angle allocated in the hue circle for the different feature information.
  8. 根据权利要求7所述的装置,其特征在于,所述角度分配单元还用于:The device according to claim 7, wherein the angle distribution unit is further configured to:
    若按照第一预设角度间隔,从参考角度开始,所述色相环中对应角度已全部分配,则从下一参考角度依次为不同的所述特征信息分配不同角度。If the corresponding angles in the hue circle have all been allocated from the reference angle according to the first preset angle interval, different angles are assigned to the different feature information from the next reference angle.
  9. 根据权利要求6所述的装置,其特征在于,所述颜色分布模型为待选颜色列表,所述待选颜色列表中任意两个待选颜色的RGB值相差大于第一预设阈值;The apparatus according to claim 6, wherein the color distribution model is a candidate color list, and RGB values of any two of the candidate colors in the candidate color list differ by more than a first preset threshold;
    所述颜色分配模块包括:The color distribution module includes:
    颜色滤除单元,用于将与当前背景颜色的RGB值相差小于第一预设阈值的待选颜色和已分配的待选颜色从待选颜色列表中滤除,得到第一待选颜色列表;a color filtering unit, configured to filter the to-be-selected color and the selected candidate color that are different from the RGB value of the current background color by the first preset threshold from the candidate color list, to obtain a first candidate color list;
    颜色分配单元,用于从所述第一待选颜色列表中将不同的待选颜色分配至不同的特征信息。a color distribution unit, configured to allocate different candidate colors to different feature information from the first candidate color list.
  10. 根据权利要求6所述的装置,其特征在于,所述当前背景颜色为当前背景中颜色中占屏幕区域的比例大于第三预设阈值的颜色。 The device according to claim 6, wherein the current background color is a color in the current background in which the proportion of the screen area is greater than a third preset threshold.
PCT/CN2017/103281 2017-03-20 2017-09-25 Writing color setting method and apparatus WO2018171152A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710166988.2 2017-03-20
CN201710166988.2A CN106952323A (en) 2017-03-20 2017-03-20 Writing track color setting method and device

Publications (1)

Publication Number Publication Date
WO2018171152A1 true WO2018171152A1 (en) 2018-09-27

Family

ID=59473243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103281 WO2018171152A1 (en) 2017-03-20 2017-09-25 Writing color setting method and apparatus

Country Status (2)

Country Link
CN (1) CN106952323A (en)
WO (1) WO2018171152A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106952323A (en) * 2017-03-20 2017-07-14 广州视源电子科技股份有限公司 Writing track color setting method and device
CN109410813B (en) * 2018-10-24 2021-11-23 海信视像科技股份有限公司 Adjusting method and device of touch whiteboard

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11327789A (en) * 1998-03-12 1999-11-30 Ricoh Co Ltd Color display and electronic blackboard system
CN105893885A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Adjustment method and device for input interface
CN106502486A (en) * 2015-09-08 2017-03-15 腾讯科技(深圳)有限公司 Method for information display and device under screen lock state
CN106952323A (en) * 2017-03-20 2017-07-14 广州视源电子科技股份有限公司 Writing track color setting method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436330A (en) * 2011-12-22 2012-05-02 广东威创视讯科技股份有限公司 Embedded type electronic whiteboard and realizing method thereof
US9479548B2 (en) * 2012-05-23 2016-10-25 Haworth, Inc. Collaboration system with whiteboard access to global collaboration data
CN103226409A (en) * 2012-10-19 2013-07-31 无锡海森诺科技有限公司 Method for achieving electronic whiteboard function switching and based on shortcut key icons, and electronic whiteboard
CN103929351A (en) * 2013-09-27 2014-07-16 百视通网络电视技术发展有限责任公司 Drawing board real-time response method based on Web and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11327789A (en) * 1998-03-12 1999-11-30 Ricoh Co Ltd Color display and electronic blackboard system
CN106502486A (en) * 2015-09-08 2017-03-15 腾讯科技(深圳)有限公司 Method for information display and device under screen lock state
CN105893885A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Adjustment method and device for input interface
CN106952323A (en) * 2017-03-20 2017-07-14 广州视源电子科技股份有限公司 Writing track color setting method and device

Also Published As

Publication number Publication date
CN106952323A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US10397638B2 (en) Information processing apparatus, and image displaying method
US9560076B2 (en) Secure trust-scored distributed multimedia collaboration session
US11539764B2 (en) Communication management system, communication system, communication management device, image processing method, and non-transitory computer-readable medium
US20110119638A1 (en) User interface methods and systems for providing gesturing on projected images
US20130290861A1 (en) Permitting participant configurable view selection within a screen sharing session
US9477436B2 (en) Interactive display system, operation method thereof, and image intermediary apparatus
US20140355819A1 (en) Device and method for allocating data based on an arrangement of elements in an image
US20200341631A1 (en) Electronic whiteboard, method for image processing in electronic whiteboard, and recording medium containing computer program of electronic whiteboard
WO2018171152A1 (en) Writing color setting method and apparatus
US10628117B2 (en) Communication terminal, communication system, display control method, and recording medium
KR102492423B1 (en) Diy electronic blackboard-based remote lecture providing system and method therefor
WO2024045985A1 (en) Screen control method, screen control apparatus, electronic device, program, and medium
WO2019054796A1 (en) Method for enabling interaction using fingerprint on display and electronic device thereof
US10297058B2 (en) Apparatus, system, and method of controlling display of image, and recording medium for changing an order or image layers based on detected user activity
US11398207B2 (en) Multi-screen interactive network teaching method and apparatus
KR20200022453A (en) Intelligent Whiteboard Collaboration Systems and Methods
US20160196675A1 (en) Methods and Systems for Visually Deemphasizing a Displayed Persona
JP2017102635A (en) Communication terminal, communication system, communication control method, and program
WO2016208396A1 (en) Communication terminal, management system, communication system, display method and program
JP2016192242A (en) Electronic information board, image processing method, and program
US20200089332A1 (en) Information processing apparatus and non-transitory computer readable medium
KR101315951B1 (en) Image management apparatus using maker recognition and image tracing
US20160301729A1 (en) Methods and systems for presenting video in a context-sensitive manner
US10795467B2 (en) Display device, electronic blackboard system, and user interface setting method
US10921977B2 (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17901538

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.01.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17901538

Country of ref document: EP

Kind code of ref document: A1