WO2018214356A1 - Color getting method and apparatus, device and storage medium - Google Patents

Color getting method and apparatus, device and storage medium Download PDF

Info

Publication number
WO2018214356A1
WO2018214356A1 PCT/CN2017/103254 CN2017103254W WO2018214356A1 WO 2018214356 A1 WO2018214356 A1 WO 2018214356A1 CN 2017103254 W CN2017103254 W CN 2017103254W WO 2018214356 A1 WO2018214356 A1 WO 2018214356A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
screen
display screen
color information
updated
Prior art date
Application number
PCT/CN2017/103254
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 WO2018214356A1 publication Critical patent/WO2018214356A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present invention relates to computer technology, and in particular, to a color picking method, apparatus, device, and storage medium.
  • the color picking method is generally adopted by installing and opening the application software, and using the color editing module or the color palette configured therein to select the color of the text.
  • this method requires a specific application to be manually opened, and since the color type in the palette is fixed in several colors, the color desired by the user cannot be taken out in real time, quickly, conveniently, and accurately, and the user experience is reduced.
  • the embodiment of the invention provides a color picking method, device, device and storage medium, so as to realize the color desired by the user in real time, quickly, conveniently and accurately, and improve the user experience.
  • an embodiment of the present invention provides a color picking method, including:
  • the current display screen of the system screen is frozen
  • the current display screen of the freeze system screen includes:
  • the operational response of the screen click command is updated to the location identification at the click location of the screen click command.
  • the identifying at least one screen position selected by the user in the current display screen, and acquiring color information corresponding to the screen position includes:
  • an operation response result corresponding to a screen click instruction input by the user where the operation response result includes: location information at a click position of the screen click instruction;
  • color information corresponding to the location information is acquired.
  • the method further includes:
  • the target color information is selected from the saved at least one color information as the annotation color corresponding to the real-time updated display screen, according to the display screen updated in real time after thawing.
  • the thawing the system screen includes:
  • the displaying the target color information from the saved at least one color information according to the display screen that is updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen includes:
  • the target color information is used as an annotation color corresponding to the currently updated display screen.
  • an embodiment of the present invention further provides a color picking device, the device comprising:
  • a screen freeze module configured to freeze a current display screen of the system screen when it is determined that the color picking instruction is detected
  • a color obtaining module configured to identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
  • a color saving module configured to save the at least one color information after acquiring color information corresponding to the screen position
  • a screen thawing module configured to thaw the system screen if the color picking instruction is received again
  • a color selection module configured to select the target color information from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen.
  • an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the implementation of the present invention.
  • a computer device including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the implementation of the present invention.
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the color picking method according to any one of the embodiments of the present invention is implemented.
  • the embodiment of the invention acquires the current display picture of the user by freezing the current display screen of the system screen.
  • the corresponding color information at the at least one position selected on the surface utilizes the advantage of directly performing color picking on the system screen frozen in real time, and solves the problem that the prior art needs to open a specific application and can only select a fixed color in the color palette.
  • Several colors which can not easily and accurately extract the color desired by the user, realize real-time, fast, convenient and accurate retrieval of the color desired by the user, and improve the user experience.
  • FIG. 1 is a schematic flow chart of a color picking method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flow chart of a color picking method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a color picking device according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a computer device according to Embodiment 4 of the present invention.
  • FIG. 1 is a schematic flow chart of a color picking method according to Embodiment 1 of the present invention.
  • the method can be applied to the case of color picking, which can be performed by a color picking device, which can be composed of hardware and/or software, and can generally be integrated in a smart tablet and all smart terminals including color picking functions. Specifically include the following:
  • the color picking instruction may be an instruction carrying the color picking control information, which may be through a network signal, red External signal transmission.
  • the color picking instruction sent by the remote control device through the infrared signal can be detected, and the smart tablet and the smart pen for controlling the smart tablet are taken as an example.
  • the user can press The color picking button on the smart pen, and the corresponding color picking control information generated by the smart pen is sent to the smart tablet through the infrared signal, and when the smart tablet receives the infrared signal, the system screen freezes the system screen according to the color picking instruction included in the infrared signal.
  • the current display screen is a user's the color picking control information generated by the smart pen.
  • the purpose of freezing the current display screen of the system screen is to fix the current display screen on the screen to perform a color picking operation on the currently displayed screen.
  • the current display screen of the freeze system screen includes: stopping the refreshing of the display screen of the system screen; updating the operation response of the screen click command to the position recognition at the click position of the screen click command.
  • the operation response of the screen click instruction may include a response other than the position recognition at the click position of the screen click instruction before the update, for example, may include a selection operation, may also include an operation of opening the corresponding application, and the like.
  • the screen display of the system screen is substantially realized by refreshing several frames of pictures per second, so when the screen required by the user appears, the current display screen of the system screen can be frozen by stopping the display screen of the refresh system screen, and
  • the operation response of the screen click command is uniformly updated to the position recognition at the click position of the screen click command, that is, when the user clicks on the screen, the system responds to the click operation by acquiring the coordinate information at the click position.
  • the user can select at least one screen position in the frozen current display screen by clicking the screen, thereby obtaining corresponding color information at the screen click position, that is, clicking the screen once to obtain a type
  • the color information can be obtained by clicking on different positions on the screen to obtain color information at different positions in the current display screen.
  • the color information is information that can describe a color value, and may be, for example, RGB (red, green, and blue) values of colors.
  • RGB red, green, and blue
  • the at least one screen position selected by the user in the current display screen is obtained, and the color information corresponding to the screen position is obtained, including: obtaining an operation response result corresponding to the screen click instruction input by the user, wherein the operation response result comprises: The position information at the click position of the screen click instruction; and the color information corresponding to the position information is acquired in the cache data corresponding to the current display screen.
  • the location information may be coordinate information.
  • each frame of the screen is cached correspondingly during the process of updating the display screen.
  • the frame buffer image data can be read by reading the system Framebuffer. Obtaining the color information of each pixel in the current display screen. For example, if the user clicks on a certain point on the screen, the system will recognize and acquire the coordinates of the point in response to the click operation, and obtain coordinates in the image cache data. (75,66) Color information at the location.
  • the technical solution of the embodiment obtains the color information corresponding to at least one location selected by the user on the current display screen by freezing the current display screen of the system screen, and utilizes the advantages of directly performing color picking on the system screen frozen in real time.
  • the invention solves the problem that the prior art needs to open a specific application and can only select several fixed colors in the palette, and the problem that the user wants the color can not be conveniently and accurately obtained is realized, real-time, fast and convenient. Accurately extract the color that the user wants and enhance the user experience.
  • Embodiment 2 is a schematic flow chart of a color picking method according to Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment, and provides a preferred color picking method. Specifically, further optimization is performed after acquiring color information corresponding to the screen position. Specifically include the following:
  • the at least one color information is acquired, the at least one color information is correspondingly numbered and saved into a corresponding color buffer to be retrieved from the color buffer when needed.
  • the color picking instruction that triggers the defrosting system screen and the color picking instruction that triggers the freeze system screen may be the same instruction, so as to quickly start or close the color picking process.
  • a smart tablet and a smart pen for controlling a smart tablet are taken as an example.
  • the color pen button of the smart pen can be pressed, and the smart pen generates corresponding color picking control information and passes the infrared.
  • the signal is sent to the smart tablet to control the smart tablet to unfreeze the system screen.
  • the system screen is unfrozen, the related color picking process is turned off, and the default running process before the color picking is resumed.
  • the thawing system screen comprises: refreshing the display screen of the system screen according to the preset refresh frequency; and restoring the operation response of the screen click instruction to the initial setting.
  • the preset refresh frequency may be the default refresh rate of each frame of the system.
  • the purpose of refreshing the display screen of the system screen is to obtain a dynamic display before the screen displayed on the screen is restored to the color selection.
  • the operation response of the screen click command can be restored to the initial setting before the color picking, so that the system screen after the color picking can respond normally to the user's click operation.
  • the target color information may be color information that meets a preset condition, where the preset condition may be a number corresponding to the specific color information in the color buffer.
  • the display screen corresponding to different application software may be set to bind the color information corresponding to different numbers in the color buffer, for example, using the color No. 1 in the color buffer as an annotation in the screen displayed by the whiteboard software.
  • the color used by default when editing or editing, and the color of the color in the color buffer is used as the default color when editing or editing.
  • the preset condition may also be a degree of difference from the color of the updated display screen.
  • the target color information is selected from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen, including: when determining that the current display screen of the system screen is updated. Obtaining a pixel color average value of the currently updated display screen; and selecting, from the color values corresponding to the saved at least one color information, color information corresponding to the color value that has the largest difference from the pixel color average value as the target color information; The target color information is used as an annotation color corresponding to the currently updated display screen.
  • the pixel color average value may be an average value of RGB values corresponding to each pixel point in the currently updated display screen, and the color value corresponding to the color information may be an RGB value stored in the color buffer area.
  • the RGB values in the color buffer and the pixels in the currently updated display screen can be selected.
  • the color information of which the average value of the corresponding RGB values differs the most is the target color information.
  • the advantage of automatically selecting the selected target color information as the annotation color according to the currently updated display screen is that the annotation color can be more prominent in the background image, and there is no need to manually replace the annotation color, and when the screen changes, the current update is automatically updated.
  • the color of the annotations makes the color picking process more convenient and faster, improving the user experience.
  • the system screen is thawed when the color picking instruction is received again, and the target color information is selected from the saved at least one color information according to the updated display screen, as The annotation color of the currently updated display screen, so that the system can automatically update the annotation color, which improves the speed and convenience of the color selection process and the color change process, and improves the user experience.
  • FIG. 3 is a schematic structural diagram of a color picking device according to Embodiment 3 of the present invention.
  • the color picking device includes a screen freezing module 310 and a color acquiring module 320. Each module will be specifically described below.
  • the screen freezing module 310 is configured to freeze the current display screen of the system screen when it is determined that the color picking instruction is detected;
  • the color obtaining module 320 is configured to identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
  • the embodiment provides a color picking device, which acquires color information corresponding to at least one location selected by the user on the current display screen by freezing the current display screen of the system screen, and directly uses the system screen on the real-time frozen system.
  • the advantage of color solves the need to open a specific application in the prior art Only a fixed number of colors can be selected in the palette, and the problem that the user wants the color that is desired can not be easily and accurately obtained, realizing the real-time, fast, convenient and accurate removal of the color desired by the user, and improving The effect of the user experience.
  • the screen freezing module 310 can be specifically configured to:
  • the operational response of the screen click command is updated to the location identification at the click location of the screen click command.
  • the color obtaining module 320 may be specifically configured to:
  • an operation response result corresponding to a screen click instruction input by the user where the operation response result includes: location information at a click position of the screen click instruction;
  • color information corresponding to the location information is acquired.
  • the method may further include:
  • a color saving module configured to save the at least one color information after acquiring color information corresponding to the screen position
  • a screen thawing module configured to thaw the system screen if the color picking instruction is received again
  • a color selection module configured to select the target color information from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen.
  • the screen defrosting module may be specifically configured to:
  • the color selection module may be specifically configured to:
  • the target color information is used as an annotation color corresponding to the currently updated display screen.
  • the above product can perform the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the device includes a processor 410, a memory 420, an input device 430, and an output device 440.
  • the number of processors 410 in the device may be One or more, one processor 410 is taken as an example in FIG. 4; the processor 410, the memory 420, the input device 430, and the output device 440 in the device may be connected by a bus or other manner, and the connection in FIG. example.
  • the memory 420 is used as a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a module corresponding to the color picking method in the embodiment of the present invention (for example, the screen freeze module in the color picking device of FIG. 3) 310 and color acquisition module 320).
  • the processor 410 performs various function applications and data processing of the device by executing software programs, instructions, and modules stored in the memory 420, that is, implementing the above-described color picking method.
  • the memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may be stored according to the terminal. Use the data created, etc.
  • memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 420 can further include memory remotely located relative to processor 410, which can be connected to the device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 430 can be configured to receive an infrared signal containing instruction information and to generate a screen click signal input related to user settings and function control of the device.
  • Output device 440 can include a display device such as a display screen.
  • a fifth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements a color picking method as provided in all embodiments of the present invention: determining that a color picking instruction is detected And freezing the current display screen of the system screen; identifying at least one screen position selected by the user in the frozen current display screen, and acquiring color information corresponding to the screen position.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of computer readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (Read-Only Memory, ROM), Erasable Programmable Read Only Memory (EPROM) (or flash memory), optical fiber, Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer readable storage medium can be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. .
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including an object oriented programming language such as Java, Smalltalk, C++, and conventional Procedural programming language—such as the "C" language or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or can be connected to an external computer (eg Use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network

Abstract

A color getting method and apparatus, a device and a storage medium. The method comprises: freezing the current display picture of a system screen when it is determined that a color getting instruction is detected (S110); and identifying at least one screen position selected by a user in the frozen current display picture, and obtaining color information corresponding to the screen position (S120). By means of the technical solution, colors desired by the user can be gotten in real time, quickly, conveniently and accurately, and thus user experience is improved.

Description

一种取色方法、装置、设备及存储介质Color picking method, device, device and storage medium 技术领域Technical field
本发明涉及计算机技术,尤其涉及一种取色方法、装置、设备及存储介质。The present invention relates to computer technology, and in particular, to a color picking method, apparatus, device, and storage medium.
背景技术Background technique
为了方便人们的工作和学习,手机、平板等智能终端中越来越多的安装有例如办公软件或白板软件等应用软件,这些软件在使用文字编辑功能或批注功能时需要对文字或批注的颜色进行调整。In order to facilitate people's work and study, more and more intelligent terminals such as mobile phones and tablets are installed with application software such as office software or whiteboard software, which requires text or annotation color when using text editing function or annotation function. Adjustment.
目前,普遍采用取色方法是通过安装并打开应用软件,利用其中配置的色彩编辑模块或调色盘进行文字颜色的选定。然而,此方法需要手动打开特定应用,且由于调色盘中的颜色种类是固定的几种颜色,因而无法实时、快捷、方便、准确地取出用户想要的颜色,降低了用户体验。At present, the color picking method is generally adopted by installing and opening the application software, and using the color editing module or the color palette configured therein to select the color of the text. However, this method requires a specific application to be manually opened, and since the color type in the palette is fixed in several colors, the color desired by the user cannot be taken out in real time, quickly, conveniently, and accurately, and the user experience is reduced.
发明内容Summary of the invention
本发明实施例提供一种取色方法、装置、设备及存储介质,以实现实时、快捷、方便、准确地取出用户想要的颜色,提升用户体验。The embodiment of the invention provides a color picking method, device, device and storage medium, so as to realize the color desired by the user in real time, quickly, conveniently and accurately, and improve the user experience.
第一方面,本发明实施例提供了一种取色方法,包括:In a first aspect, an embodiment of the present invention provides a color picking method, including:
在确定检测到取色指令时,冻结系统屏幕的当前显示画面;When it is determined that the color picking instruction is detected, the current display screen of the system screen is frozen;
识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。Recognizing at least one screen position selected by the user in the frozen current display screen, and acquiring color information corresponding to the screen position.
进一步的,所述冻结系统屏幕的当前显示画面,包括: Further, the current display screen of the freeze system screen includes:
停止刷新所述系统屏幕的显示画面;Stop refreshing the display screen of the system screen;
将屏幕点击指令的操作响应更新为对所述屏幕点击指令的点击位置处的位置识别。The operational response of the screen click command is updated to the location identification at the click location of the screen click command.
进一步的,所述识别用户在所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息,包括:Further, the identifying at least one screen position selected by the user in the current display screen, and acquiring color information corresponding to the screen position, includes:
获取与用户输入的屏幕点击指令对应的操作响应结果,其中,所述操作响应结果包括:所述屏幕点击指令的点击位置处的位置信息;Obtaining an operation response result corresponding to a screen click instruction input by the user, where the operation response result includes: location information at a click position of the screen click instruction;
在与所述当前显示画面对应的缓存数据中,获取与所述位置信息对应的颜色信息。In the cache data corresponding to the current display screen, color information corresponding to the location information is acquired.
进一步的,在获取与所述屏幕位置对应的颜色信息之后,还包括:Further, after acquiring the color information corresponding to the screen position, the method further includes:
保存所述至少一个颜色信息;Saving the at least one color information;
若再次收到所述取色指令,则解冻所述系统屏幕;If the color picking instruction is received again, the system screen is thawed;
根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色。The target color information is selected from the saved at least one color information as the annotation color corresponding to the real-time updated display screen, according to the display screen updated in real time after thawing.
进一步的,所述解冻所述系统屏幕,包括:Further, the thawing the system screen includes:
按照预设刷新频率,刷新所述系统屏幕的显示画面;Refreshing the display screen of the system screen according to a preset refresh frequency;
将屏幕点击指令的操作响应还原为初始设置。Restore the action response of the screen click command to the initial setting.
进一步的,所述根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色,包括:Further, the displaying the target color information from the saved at least one color information according to the display screen that is updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen, includes:
在确定所述系统屏幕的当前显示画面被更新时,获取当前更新的显示画面的像素颜色平均值; Obtaining a pixel color average value of the currently updated display screen when it is determined that the current display screen of the system screen is updated;
从保存的所述至少一个颜色信息所对应的颜色值中,选取与所述像素颜色平均值相差最大的颜色值所对应的颜色信息,作为目标颜色信息;And selecting, from the color values corresponding to the saved at least one color information, color information corresponding to a color value having a maximum difference from the pixel color average value as the target color information;
将所述目标颜色信息作为与所述当前更新的显示画面对应的批注颜色。The target color information is used as an annotation color corresponding to the currently updated display screen.
第二方面,本发明实施例还提供了一种取色装置,该装置包括:In a second aspect, an embodiment of the present invention further provides a color picking device, the device comprising:
屏幕冻结模块,用于在确定检测到取色指令时,冻结系统屏幕的当前显示画面;a screen freeze module, configured to freeze a current display screen of the system screen when it is determined that the color picking instruction is detected;
颜色获取模块,用于识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。And a color obtaining module, configured to identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
进一步的,还包括:Further, it also includes:
颜色保存模块,用于在获取与所述屏幕位置对应的颜色信息之后,保存所述至少一个颜色信息;a color saving module, configured to save the at least one color information after acquiring color information corresponding to the screen position;
屏幕解冻模块,用于若再次收到所述取色指令,则解冻所述系统屏幕;a screen thawing module, configured to thaw the system screen if the color picking instruction is received again;
颜色选取模块,用于根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色。And a color selection module, configured to select the target color information from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen.
第三方面,本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序所述处理器执行所述程序时实现如本发明实施例中任一所述的取色方法。In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the implementation of the present invention. The color picking method described in any of the examples.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例中任一所述的取色方法。In a fourth aspect, the embodiment of the present invention further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the color picking method according to any one of the embodiments of the present invention is implemented.
本发明实施例通过冻结系统屏幕的当前显示画面,获取用户在当前显示画 面上选择的至少一个位置处对应的颜色信息,利用了在实时冻结的系统屏幕上直接进行取色的优点,解决了现有技术中需要打开特定应用且只能在调色盘中选择固定的几种颜色,而导致的无法便捷、准确地取出用户想要的颜色的问题,实现了实时、快捷、方便、准确地取出用户想要的颜色,提升用户体验的效果。The embodiment of the invention acquires the current display picture of the user by freezing the current display screen of the system screen. The corresponding color information at the at least one position selected on the surface utilizes the advantage of directly performing color picking on the system screen frozen in real time, and solves the problem that the prior art needs to open a specific application and can only select a fixed color in the color palette. Several colors, which can not easily and accurately extract the color desired by the user, realize real-time, fast, convenient and accurate retrieval of the color desired by the user, and improve the user experience.
附图说明DRAWINGS
图1是本发明实施例一提供的一种取色方法的流程示意图;1 is a schematic flow chart of a color picking method according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种取色方法的流程示意图;2 is a schematic flow chart of a color picking method according to Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种取色装置的结构示意图;3 is a schematic structural diagram of a color picking device according to Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种计算机设备的结构示意图。4 is a schematic structural diagram of a computer device according to 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为本发明实施例一提供的一种取色方法的流程示意图。该方法可适用于取色的情况,该方法可以由取色装置来执行,该装置可由硬件和/或软件组成,并一般可集成在智能平板以及所有包含取色功能的智能终端中。具体包括如下:FIG. 1 is a schematic flow chart of a color picking method according to Embodiment 1 of the present invention. The method can be applied to the case of color picking, which can be performed by a color picking device, which can be composed of hardware and/or software, and can generally be integrated in a smart tablet and all smart terminals including color picking functions. Specifically include the following:
S110、在确定检测到取色指令时,冻结系统屏幕的当前显示画面。S110. When it is determined that the color picking instruction is detected, the current display screen of the system screen is frozen.
可选的,取色指令可以是携带取色控制信息的指令,可通过网络信号、红 外信号等方式进行传输。示例性的,可检测遥控设备通过红外信号发送的取色指令,以智能平板和用于控制智能平板的智能笔为例,当用户对系统屏幕上当前显示的画面感兴趣时,可通过按下智能笔上的取色按钮,并由智能笔生成相应的取色控制信息通过红外信号发送给智能平板,智能平板在收到该红外信号时,根据红外信号中包含的取色指令冻结系统屏幕的当前显示画面。Optionally, the color picking instruction may be an instruction carrying the color picking control information, which may be through a network signal, red External signal transmission. Illustratively, the color picking instruction sent by the remote control device through the infrared signal can be detected, and the smart tablet and the smart pen for controlling the smart tablet are taken as an example. When the user is interested in the currently displayed screen on the system screen, the user can press The color picking button on the smart pen, and the corresponding color picking control information generated by the smart pen is sent to the smart tablet through the infrared signal, and when the smart tablet receives the infrared signal, the system screen freezes the system screen according to the color picking instruction included in the infrared signal. The current display screen.
冻结系统屏幕的当前显示画面的目的在于,固定屏幕上的当前显示画面,以对当前显示的画面进行取色操作。The purpose of freezing the current display screen of the system screen is to fix the current display screen on the screen to perform a color picking operation on the currently displayed screen.
优选的,冻结系统屏幕的当前显示画面,包括:停止刷新系统屏幕的显示画面;将屏幕点击指令的操作响应更新为对屏幕点击指令的点击位置处的位置识别。Preferably, the current display screen of the freeze system screen includes: stopping the refreshing of the display screen of the system screen; updating the operation response of the screen click command to the position recognition at the click position of the screen click command.
其中,屏幕点击指令的操作响应在更新之前可以包括除了对屏幕点击指令的点击位置处的位置识别以外的其他响应,例如可以包括选择操作,也可以包括打开相应应用程序的操作等。Wherein, the operation response of the screen click instruction may include a response other than the position recognition at the click position of the screen click instruction before the update, for example, may include a selection operation, may also include an operation of opening the corresponding application, and the like.
示例性的,系统屏幕的画面显示实质上是通过每秒刷新若干帧画面实现的,因此当用户需要的画面出现时,可通过停止刷新系统屏幕的显示画面来冻结系统屏幕的当前显示画面,并将屏幕点击指令的操作响应统一更新为对屏幕点击指令的点击位置处的位置识别,即当用户点击屏幕时,系统对该点击操作的响应为获取该点击位置处的坐标信息。Exemplarily, the screen display of the system screen is substantially realized by refreshing several frames of pictures per second, so when the screen required by the user appears, the current display screen of the system screen can be frozen by stopping the display screen of the refresh system screen, and The operation response of the screen click command is uniformly updated to the position recognition at the click position of the screen click command, that is, when the user clicks on the screen, the system responds to the click operation by acquiring the coordinate information at the click position.
S120、识别用户在冻结的当前显示画面中选择的至少一个屏幕位置,并获取与屏幕位置对应的颜色信息。S120. Identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
可选的,用户可通过点击屏幕以在冻结的当前显示画面中选择至少一个屏幕位置,进而获取屏幕点击位置处对应的颜色信息,即点击一次屏幕获取一种 颜色信息,可通过在点击屏幕上的不同位置,获取当前显示画面中不同位置处的颜色信息。其中,颜色信息是可以描述彩色值的信息,例如可以是颜色的RGB(红、绿、蓝三色)值。识别用户选择的屏幕位置并获取相应颜色信息的好处在于,用户可以直接在屏幕上的当前显示画面中选取喜欢的颜色,而不用拘泥于调色盘中几种固定的颜色,提高了用户体验。通过直接获取屏幕颜色的方式解决了现有技术中因需要打开特定应用才能获取调色盘中颜色,而导致的操作繁琐的问题,从而提高了取色效率,使得取色操作更加方便快捷。Optionally, the user can select at least one screen position in the frozen current display screen by clicking the screen, thereby obtaining corresponding color information at the screen click position, that is, clicking the screen once to obtain a type The color information can be obtained by clicking on different positions on the screen to obtain color information at different positions in the current display screen. The color information is information that can describe a color value, and may be, for example, RGB (red, green, and blue) values of colors. The advantage of recognizing the screen position selected by the user and obtaining the corresponding color information is that the user can directly select the favorite color in the current display screen on the screen without sticking to several fixed colors in the palette, thereby improving the user experience. By directly acquiring the color of the screen, the problem of cumbersome operation caused by the need to open a specific application to obtain the color in the palette is solved, thereby improving the color picking efficiency and making the color picking operation more convenient and quick.
优选的,识别用户在当前显示画面中选择的至少一个屏幕位置,并获取与屏幕位置对应的颜色信息,包括:获取与用户输入的屏幕点击指令对应的操作响应结果,其中,操作响应结果包括:屏幕点击指令的点击位置处的位置信息;在与当前显示画面对应的缓存数据中,获取与所述位置信息对应的颜色信息。Preferably, the at least one screen position selected by the user in the current display screen is obtained, and the color information corresponding to the screen position is obtained, including: obtaining an operation response result corresponding to the screen click instruction input by the user, wherein the operation response result comprises: The position information at the click position of the screen click instruction; and the color information corresponding to the position information is acquired in the cache data corresponding to the current display screen.
其中,位置信息可以为坐标信息,示例性的,屏幕在更新显示画面的过程中每一帧画面都会进行相应的缓存,当屏幕停止刷新时,可通过读取系统Framebuffer(帧缓冲)图像缓存数据获取当前显示画面中每个像素点的颜色信息,例如,若用户点击屏幕上某一点,系统会响应于该点击操作,即识别并获取该点的坐标,并在从图像缓存数据中获取坐标为(75,66)位置处的颜色信息。Wherein, the location information may be coordinate information. Illustratively, each frame of the screen is cached correspondingly during the process of updating the display screen. When the screen stops refreshing, the frame buffer image data can be read by reading the system Framebuffer. Obtaining the color information of each pixel in the current display screen. For example, if the user clicks on a certain point on the screen, the system will recognize and acquire the coordinates of the point in response to the click operation, and obtain coordinates in the image cache data. (75,66) Color information at the location.
本实施例的技术方案,通过冻结系统屏幕的当前显示画面,获取用户在当前显示画面上选择的至少一个位置处对应的颜色信息,利用了在实时冻结的系统屏幕上直接进行取色的优点,解决了现有技术中需要打开特定应用且只能在调色盘中选择固定的几种颜色,而导致的无法便捷、准确地取出用户想要的颜色的问题,实现了实时、快捷、方便、准确地取出用户想要的颜色,提升用户体验的效果。 The technical solution of the embodiment obtains the color information corresponding to at least one location selected by the user on the current display screen by freezing the current display screen of the system screen, and utilizes the advantages of directly performing color picking on the system screen frozen in real time. The invention solves the problem that the prior art needs to open a specific application and can only select several fixed colors in the palette, and the problem that the user wants the color can not be conveniently and accurately obtained is realized, real-time, fast and convenient. Accurately extract the color that the user wants and enhance the user experience.
实施例二Embodiment 2
图2为本发明实施例二提供的一种取色方法的流程示意图。本实施例以上述实施例为基础进行优化,提供了优选的取色方法,具体是,在获取与所述屏幕位置对应的颜色信息之后进行了进一步优化。具体包括如下:2 is a schematic flow chart of a color picking method according to Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment, and provides a preferred color picking method. Specifically, further optimization is performed after acquiring color information corresponding to the screen position. Specifically include the following:
S210、在确定检测到取色指令时,冻结系统屏幕的当前显示画面。S210. When it is determined that the color picking instruction is detected, the current display screen of the system screen is frozen.
S220、识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。S220. Identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
S230、保存至少一个颜色信息。S230. Save at least one color information.
可选的,当获取到至少一个颜色信息后,相应地将至少一个颜色信息进行编号,并保存至相应的颜色缓存区中,以便在需要时从颜色缓存区中进行调取。Optionally, after the at least one color information is acquired, the at least one color information is correspondingly numbered and saved into a corresponding color buffer to be retrieved from the color buffer when needed.
S240、检测是否再次收到取色指令,若是,则执行S250;若否,则返回执行S220。S240. Detect whether the color picking instruction is received again. If yes, execute S250; if no, return to execute S220.
可选的,触发解冻系统屏幕的取色指令与触发冻结系统屏幕的取色指令可以是相同指令,以便于快速启动或关闭取色进程。示例性的,以智能平板和用于控制智能平板的智能笔为例,当用户需要关闭取色进程时,可按下智能笔的取色按钮,智能笔生成相应的取色控制信息并通过红外信号发送给智能平板,以控制智能平板解冻系统屏幕。Optionally, the color picking instruction that triggers the defrosting system screen and the color picking instruction that triggers the freeze system screen may be the same instruction, so as to quickly start or close the color picking process. For example, a smart tablet and a smart pen for controlling a smart tablet are taken as an example. When the user needs to turn off the color picking process, the color pen button of the smart pen can be pressed, and the smart pen generates corresponding color picking control information and passes the infrared. The signal is sent to the smart tablet to control the smart tablet to unfreeze the system screen.
S250、解冻系统屏幕。S250, thaw the system screen.
示例性的,当屏幕已经收到过取色指令后再次收到取色指令时,则解冻系统屏幕,关闭相关的取色进程,并恢复取色之前系统默认运行的进程。Exemplarily, when the screen has received the color picking instruction and receives the color picking instruction again, the system screen is unfrozen, the related color picking process is turned off, and the default running process before the color picking is resumed.
优选的,解冻系统屏幕包括:按照预设刷新频率,刷新系统屏幕的显示画面;将屏幕点击指令的操作响应还原为初始设置。 Preferably, the thawing system screen comprises: refreshing the display screen of the system screen according to the preset refresh frequency; and restoring the operation response of the screen click instruction to the initial setting.
其中,预设刷新频率可以为系统默认的每帧画面的刷新频率。刷新系统屏幕的显示画面的目的在于获取使屏幕显示的画面恢复为取色之前的动态显示。示例性的,可将屏幕点击指令的操作响应还原为取色之前的初始设置,以使取色后系统屏幕能够正常响应用户的点击操作。The preset refresh frequency may be the default refresh rate of each frame of the system. The purpose of refreshing the display screen of the system screen is to obtain a dynamic display before the screen displayed on the screen is restored to the color selection. Exemplarily, the operation response of the screen click command can be restored to the initial setting before the color picking, so that the system screen after the color picking can respond normally to the user's click operation.
S260、根据解冻后实时更新的显示画面,从保存的至少一个颜色信息中选取目标颜色信息,作为与实时更新的显示画面对应的批注颜色。S260. Select, according to the display screen that is updated in real time after the thawing, the target color information from the saved at least one color information as the annotation color corresponding to the display screen updated in real time.
可选的,目标颜色信息可以为满足预设条件的颜色信息,其中,预设条件可以是颜色缓存区中特定颜色信息所对应的编号。示例性的,不同的应用软件所对应的显示画面可设置为绑定使用颜色缓存区中不同编号对应的颜色信息,例如,在白板软件显示的画面中使用颜色缓存区中的1号色作为批注时或编辑时默认使用的颜色,而在办公软件显示的画面中使用颜色缓存区中的2号色作为批注时或编辑时默认使用的颜色。Optionally, the target color information may be color information that meets a preset condition, where the preset condition may be a number corresponding to the specific color information in the color buffer. Exemplarily, the display screen corresponding to different application software may be set to bind the color information corresponding to different numbers in the color buffer, for example, using the color No. 1 in the color buffer as an annotation in the screen displayed by the whiteboard software. The color used by default when editing or editing, and the color of the color in the color buffer is used as the default color when editing or editing.
可选的,预设条件也可以是与更新后的显示画面的颜色相差程度。Optionally, the preset condition may also be a degree of difference from the color of the updated display screen.
优选的,根据解冻后实时更新的显示画面,从保存的至少一个颜色信息中选取目标颜色信息,作为与实时更新的显示画面对应的批注颜色,包括:在确定系统屏幕的当前显示画面被更新时,获取当前更新的显示画面的像素颜色平均值;从保存的至少一个颜色信息所对应的颜色值中,选取与像素颜色平均值相差最大的颜色值所对应的颜色信息,作为目标颜色信息;将目标颜色信息作为与当前更新的显示画面对应的批注颜色。Preferably, the target color information is selected from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen, including: when determining that the current display screen of the system screen is updated. Obtaining a pixel color average value of the currently updated display screen; and selecting, from the color values corresponding to the saved at least one color information, color information corresponding to the color value that has the largest difference from the pixel color average value as the target color information; The target color information is used as an annotation color corresponding to the currently updated display screen.
其中,像素颜色平均值可以是当前更新的显示画面中各像素点所对应的RGB值的平均值,颜色信息对应的颜色值可以是保存在颜色缓存区中的RGB值。示例性的,可选取颜色缓存区中RGB值与当前更新的显示画面中各像素点 所对应的RGB值的平均值相差最大的颜色信息作为目标颜色信息。根据当前更新的显示画面自动将选取的目标颜色信息作为批注颜色的好处在于,可以使批注颜色在背景画面中更加突出,且无需手动进行批注颜色的更换,当画面改变时,即可自动更新当前的批注颜色,从而使取色过程更加方便快捷,提高了用户体验。The pixel color average value may be an average value of RGB values corresponding to each pixel point in the currently updated display screen, and the color value corresponding to the color information may be an RGB value stored in the color buffer area. Illustratively, the RGB values in the color buffer and the pixels in the currently updated display screen can be selected. The color information of which the average value of the corresponding RGB values differs the most is the target color information. The advantage of automatically selecting the selected target color information as the annotation color according to the currently updated display screen is that the annotation color can be more prominent in the background image, and there is no need to manually replace the annotation color, and when the screen changes, the current update is automatically updated. The color of the annotations makes the color picking process more convenient and faster, improving the user experience.
本实施例的技术方案,通过将获取的至少一个颜色信息保存下来,当再次收到取色指令时解冻系统屏幕,并根据更新的显示画面从保存的至少一个颜色信息中选取目标颜色信息,作为当前更新的显示画面的批注颜色,从而使得系统能够自动更新批注颜色,提高了取色过程以及换色过程的快捷性、便利性,提升了用户体验。In the technical solution of the embodiment, by saving the acquired at least one color information, the system screen is thawed when the color picking instruction is received again, and the target color information is selected from the saved at least one color information according to the updated display screen, as The annotation color of the currently updated display screen, so that the system can automatically update the annotation color, which improves the speed and convenience of the color selection process and the color change process, and improves the user experience.
实施例三Embodiment 3
图3为本发明实施例三提供的一种取色装置的结构示意图。参考图3,取色装置包括:屏幕冻结模块310以及颜色获取模块320。下面对各模块进行具体说明。FIG. 3 is a schematic structural diagram of a color picking device according to Embodiment 3 of the present invention. Referring to FIG. 3, the color picking device includes a screen freezing module 310 and a color acquiring module 320. Each module will be specifically described below.
屏幕冻结模块310,用于在确定检测到取色指令时,冻结系统屏幕的当前显示画面;The screen freezing module 310 is configured to freeze the current display screen of the system screen when it is determined that the color picking instruction is detected;
颜色获取模块320,用于识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。The color obtaining module 320 is configured to identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
本实施例提供了一种取色装置,通过冻结系统屏幕的当前显示画面,获取用户在当前显示画面上选择的至少一个位置处对应的颜色信息,利用了在实时冻结的系统屏幕上直接进行取色的优点,解决了现有技术中需要打开特定应用 且只能在调色盘中选择固定的几种颜色,而导致的无法便捷、准确地取出用户想要的颜色的问题,实现了实时、快捷、方便、准确地取出用户想要的颜色,提升用户体验的效果。The embodiment provides a color picking device, which acquires color information corresponding to at least one location selected by the user on the current display screen by freezing the current display screen of the system screen, and directly uses the system screen on the real-time frozen system. The advantage of color solves the need to open a specific application in the prior art Only a fixed number of colors can be selected in the palette, and the problem that the user wants the color that is desired can not be easily and accurately obtained, realizing the real-time, fast, convenient and accurate removal of the color desired by the user, and improving The effect of the user experience.
在上述各实施例的基础上,屏幕冻结模块310具体可以用于:Based on the foregoing embodiments, the screen freezing module 310 can be specifically configured to:
停止刷新所述系统屏幕的显示画面;Stop refreshing the display screen of the system screen;
将屏幕点击指令的操作响应更新为对所述屏幕点击指令的点击位置处的位置识别。The operational response of the screen click command is updated to the location identification at the click location of the screen click command.
在上述各实施例的基础上,颜色获取模块320具体可以用于:Based on the foregoing embodiments, the color obtaining module 320 may be specifically configured to:
获取与用户输入的屏幕点击指令对应的操作响应结果,其中,所述操作响应结果包括:所述屏幕点击指令的点击位置处的位置信息;Obtaining an operation response result corresponding to a screen click instruction input by the user, where the operation response result includes: location information at a click position of the screen click instruction;
在与所述当前显示画面对应的缓存数据中,获取与所述位置信息对应的颜色信息。In the cache data corresponding to the current display screen, color information corresponding to the location information is acquired.
在上述各实施例的基础上,还可以包括:Based on the foregoing embodiments, the method may further include:
颜色保存模块,用于在获取与所述屏幕位置对应的颜色信息之后,保存所述至少一个颜色信息;a color saving module, configured to save the at least one color information after acquiring color information corresponding to the screen position;
屏幕解冻模块,用于若再次收到所述取色指令,则解冻所述系统屏幕;a screen thawing module, configured to thaw the system screen if the color picking instruction is received again;
颜色选取模块,用于根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色。And a color selection module, configured to select the target color information from the saved at least one color information according to the display screen updated in real time after the thawing, as the annotation color corresponding to the real-time updated display screen.
在上述各实施例的基础上,所述屏幕解冻模块具体可以用于:Based on the foregoing embodiments, the screen defrosting module may be specifically configured to:
按照预设刷新频率,刷新所述系统屏幕的显示画面;Refreshing the display screen of the system screen according to a preset refresh frequency;
将屏幕点击指令的操作响应还原为初始设置。 Restore the action response of the screen click command to the initial setting.
在上述各实施例的基础上,所述颜色选取模块具体可以用于:Based on the foregoing embodiments, the color selection module may be specifically configured to:
在确定所述系统屏幕的当前显示画面被更新时,获取当前更新的显示画面的像素颜色平均值;Obtaining a pixel color average value of the currently updated display screen when it is determined that the current display screen of the system screen is updated;
从保存的所述至少一个颜色信息所对应的颜色值中,选取与所述像素颜色平均值相差最大的颜色值所对应的颜色信息,作为目标颜色信息;And selecting, from the color values corresponding to the saved at least one color information, color information corresponding to a color value having a maximum difference from the pixel color average value as the target color information;
将所述目标颜色信息作为与所述当前更新的显示画面对应的批注颜色。The target color information is used as an annotation color corresponding to the currently updated display screen.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above product can perform the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
实施例四Embodiment 4
图4为本发明实施例四提供的一种计算机设备的结构示意图,如图4所示,该设备包括处理器410、存储器420、输入装置430和输出装置440;设备中处理器410的数量可以是一个或多个,图4中以一个处理器410为例;设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或其他方式连接,图4中以通过总线连接为例。4 is a schematic structural diagram of a computer device according to Embodiment 4 of the present invention. As shown in FIG. 4, the device includes a processor 410, a memory 420, an input device 430, and an output device 440. The number of processors 410 in the device may be One or more, one processor 410 is taken as an example in FIG. 4; the processor 410, the memory 420, the input device 430, and the output device 440 in the device may be connected by a bus or other manner, and the connection in FIG. example.
存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的取色方法对应的模块(例如,图3取色装置中的屏幕冻结模块310和颜色获取模块320)。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的取色方法。The memory 420 is used as a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a module corresponding to the color picking method in the embodiment of the present invention (for example, the screen freeze module in the color picking device of FIG. 3) 310 and color acquisition module 320). The processor 410 performs various function applications and data processing of the device by executing software programs, instructions, and modules stored in the memory 420, that is, implementing the above-described color picking method.
存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使 用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may be stored according to the terminal. Use the data created, etc. Moreover, memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 can further include memory remotely located relative to processor 410, which can be connected to the device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置430可用于接收包含指令信息的红外信号,以及产生与设备的用户设置以及功能控制有关的屏幕点击信号输入。输出装置440可包括显示屏等显示设备。 Input device 430 can be configured to receive an infrared signal containing instruction information and to generate a screen click signal input related to user settings and function control of the device. Output device 440 can include a display device such as a display screen.
实施例五Embodiment 5
本发明实施例五提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的取色方法:在确定检测到取色指令时,冻结系统屏幕的当前显示画面;识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。A fifth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements a color picking method as provided in all embodiments of the present invention: determining that a color picking instruction is detected And freezing the current display screen of the system screen; identifying at least one screen position selected by the user in the frozen current display screen, and acquiring color information corresponding to the screen position.
可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是,但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM) (或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Any combination of one or more computer readable media can be utilized. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of computer readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (Read-Only Memory, ROM), Erasable Programmable Read Only Memory (EPROM) (or flash memory), optical fiber, Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer readable storage medium can be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide AreaNetwork,WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。 Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including an object oriented programming language such as Java, Smalltalk, C++, and conventional Procedural programming language—such as the "C" language or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or can be connected to an external computer (eg Use an Internet service provider to connect via the Internet).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。 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 color picking method, comprising:
    在确定检测到取色指令时,冻结系统屏幕的当前显示画面;When it is determined that the color picking instruction is detected, the current display screen of the system screen is frozen;
    识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。Recognizing at least one screen position selected by the user in the frozen current display screen, and acquiring color information corresponding to the screen position.
  2. 根据权利要求1所述的方法,其特征在于,所述冻结系统屏幕的当前显示画面,包括:The method according to claim 1, wherein the current display screen of the freeze system screen comprises:
    停止刷新所述系统屏幕的显示画面;Stop refreshing the display screen of the system screen;
    将屏幕点击指令的操作响应更新为对所述屏幕点击指令的点击位置处的位置识别。The operational response of the screen click command is updated to the location identification at the click location of the screen click command.
  3. 根据权利要求2所述的方法,其特征在于,所述识别用户在所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息,包括:The method according to claim 2, wherein the identifying the at least one screen position selected by the user in the current display screen and acquiring the color information corresponding to the screen position comprises:
    获取与用户输入的屏幕点击指令对应的操作响应结果,其中,所述操作响应结果包括:所述屏幕点击指令的点击位置处的位置信息;Obtaining an operation response result corresponding to a screen click instruction input by the user, where the operation response result includes: location information at a click position of the screen click instruction;
    在与所述当前显示画面对应的缓存数据中,获取与所述位置信息对应的颜色信息。In the cache data corresponding to the current display screen, color information corresponding to the location information is acquired.
  4. 根据权利要求1所述的方法,其特征在于,在获取与所述屏幕位置对应的颜色信息之后,还包括:The method according to claim 1, further comprising: after acquiring the color information corresponding to the screen position, further comprising:
    保存所述至少一个颜色信息;Saving the at least one color information;
    若再次收到所述取色指令,则解冻所述系统屏幕;If the color picking instruction is received again, the system screen is thawed;
    根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色。 The target color information is selected from the saved at least one color information as the annotation color corresponding to the real-time updated display screen, according to the display screen updated in real time after thawing.
  5. 根据权利要求4所述的方法,其特征在于,所述解冻所述系统屏幕,包括:The method of claim 4 wherein said thawing said system screen comprises:
    按照预设刷新频率,刷新所述系统屏幕的显示画面;Refreshing the display screen of the system screen according to a preset refresh frequency;
    将屏幕点击指令的操作响应还原为初始设置。Restore the action response of the screen click command to the initial setting.
  6. 根据权利要求5所述的方法,其特征在于,所述根据解冻后实时更新的显示画面,从保存的所述至少一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色,包括:The method according to claim 5, wherein the target color information is selected from the saved at least one color information according to the display screen updated in real time after thawing, as corresponding to the real-time updated display screen. Annotate colors, including:
    在确定所述系统屏幕的当前显示画面被更新时,获取当前更新的显示画面的像素颜色平均值;Obtaining a pixel color average value of the currently updated display screen when it is determined that the current display screen of the system screen is updated;
    从保存的所述至少一个颜色信息所对应的颜色值中,选取与所述像素颜色平均值相差最大的颜色值所对应的颜色信息,作为目标颜色信息;And selecting, from the color values corresponding to the saved at least one color information, color information corresponding to a color value having a maximum difference from the pixel color average value as the target color information;
    将所述目标颜色信息作为与所述当前更新的显示画面对应的批注颜色。The target color information is used as an annotation color corresponding to the currently updated display screen.
  7. 一种取色装置,其特征在于,包括:A color picking device, comprising:
    屏幕冻结模块,用于在确定检测到取色指令时,冻结系统屏幕的当前显示画面;a screen freeze module, configured to freeze a current display screen of the system screen when it is determined that the color picking instruction is detected;
    颜色获取模块,用于识别用户在冻结的所述当前显示画面中选择的至少一个屏幕位置,并获取与所述屏幕位置对应的颜色信息。And a color obtaining module, configured to identify at least one screen position selected by the user in the frozen current display screen, and acquire color information corresponding to the screen position.
  8. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    颜色保存模块,用于在获取与所述屏幕位置对应的颜色信息之后,保存所述至少一个颜色信息;a color saving module, configured to save the at least one color information after acquiring color information corresponding to the screen position;
    屏幕解冻模块,用于若再次收到所述取色指令,则解冻所述系统屏幕;a screen thawing module, configured to thaw the system screen if the color picking instruction is received again;
    颜色选取模块,用于根据解冻后实时更新的显示画面,从保存的所述至少 一个颜色信息中选取目标颜色信息,作为与所述实时更新的显示画面对应的批注颜色。a color selection module for displaying the live view updated after the thawing, from the saved at least The target color information is selected from a color information as an annotation color corresponding to the real-time updated display screen.
  9. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-6中任一所述的方法。A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program as claimed in any one of claims 1-6 The method described.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-6中任一所述的方法。 A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any of claims 1-6.
PCT/CN2017/103254 2017-05-22 2017-09-25 Color getting method and apparatus, device and storage medium WO2018214356A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710362240.XA CN107193458B (en) 2017-05-22 2017-05-22 One kind taking color method, device, equipment and storage medium
CN201710362240.X 2017-05-22

Publications (1)

Publication Number Publication Date
WO2018214356A1 true WO2018214356A1 (en) 2018-11-29

Family

ID=59874238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103254 WO2018214356A1 (en) 2017-05-22 2017-09-25 Color getting method and apparatus, device and storage medium

Country Status (2)

Country Link
CN (1) CN107193458B (en)
WO (1) WO2018214356A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193458B (en) * 2017-05-22 2019-03-01 广州视源电子科技股份有限公司 One kind taking color method, device, equipment and storage medium
CN108228055A (en) * 2018-01-22 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of the window's position adjustment control method, device and terminal
CN109299310A (en) * 2018-12-05 2019-02-01 王相军 A kind of screen picture takes color and searching method and system
CN109887042A (en) * 2019-01-04 2019-06-14 上海上湖信息技术有限公司 A kind of application method and device for drawing the color value that ambient color generates
CN111435276A (en) * 2019-01-14 2020-07-21 阿里巴巴集团控股有限公司 Image processing method and device and electronic equipment
CN112261768B (en) * 2020-11-03 2023-12-19 广东好太太智能家居有限公司 Lamp strip color control method and system, intelligent terminal and storage device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7573487B1 (en) * 2003-12-19 2009-08-11 Adobe Systems Incorporated Dynamically transformable user interface icons
CN102520842A (en) * 2011-11-18 2012-06-27 广东欧珀移动通信有限公司 Horizontal-vertical screen switching rotation control method for hand-held devices
CN104793835A (en) * 2014-01-17 2015-07-22 深圳市艾酷通信软件有限公司 System for changing interface colors and implementation method thereof
CN106033305A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Screen color picking method and device
CN107193458A (en) * 2017-05-22 2017-09-22 广州视源电子科技股份有限公司 One kind takes color method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206640B (en) * 2006-12-22 2011-01-26 深圳市学之友教学仪器有限公司 Method for annotations and commentaries of electric data in portable electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7573487B1 (en) * 2003-12-19 2009-08-11 Adobe Systems Incorporated Dynamically transformable user interface icons
CN102520842A (en) * 2011-11-18 2012-06-27 广东欧珀移动通信有限公司 Horizontal-vertical screen switching rotation control method for hand-held devices
CN104793835A (en) * 2014-01-17 2015-07-22 深圳市艾酷通信软件有限公司 System for changing interface colors and implementation method thereof
CN106033305A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Screen color picking method and device
CN107193458A (en) * 2017-05-22 2017-09-22 广州视源电子科技股份有限公司 One kind takes color method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107193458B (en) 2019-03-01
CN107193458A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
WO2018214356A1 (en) Color getting method and apparatus, device and storage medium
US10110678B2 (en) System and method for data communication based on image processing
US20230393721A1 (en) Method and Apparatus for Dynamically Displaying Icon Based on Background Image
US11574611B2 (en) Electronic device and method for controlling the same
CN109240576B (en) Image processing method and device in game, electronic device and storage medium
US10921873B2 (en) Method for displaying content and electronic device thereof
EP2742723B1 (en) Zero-click photo upload
US10536647B2 (en) Using a display as a light source
WO2019120016A1 (en) Image processing method and apparatus, storage medium, and electronic device
EP3104590A1 (en) Electronic device and method for displaying image therein
US20200244885A1 (en) Photographing method and electronic apparatus
TWI784942B (en) Method and device for capturing video in playback
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
WO2019183775A1 (en) Intelligent assistant control method and terminal device
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
US20230351604A1 (en) Image cutting method and apparatus, computer device, and storage medium
WO2022206582A1 (en) Video processing method and apparatus, electronic device and storage medium
WO2021213038A1 (en) Historical information acquisition method, storage medium, and system
CN116017018A (en) Live special effect rendering method, device, equipment, readable storage medium and product
CN106296735B (en) Filter updating method and device in target tracking and intelligent terminal
CN110673886B (en) Method and device for generating thermodynamic diagrams
WO2023134599A1 (en) Voice information sending method and apparatus, and electronic device
US20150120707A1 (en) Method and apparatus for performing image-based searches
CN112929751A (en) System, method and terminal for determining action execution

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: 17911328

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 14.07.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17911328

Country of ref document: EP

Kind code of ref document: A1