CN102324100A - Real-time color acquiring method and device based on camera of mobile terminal - Google Patents

Real-time color acquiring method and device based on camera of mobile terminal Download PDF

Info

Publication number
CN102324100A
CN102324100A CN201110297761A CN201110297761A CN102324100A CN 102324100 A CN102324100 A CN 102324100A CN 201110297761 A CN201110297761 A CN 201110297761A CN 201110297761 A CN201110297761 A CN 201110297761A CN 102324100 A CN102324100 A CN 102324100A
Authority
CN
China
Prior art keywords
camera
screen
focus
mobile terminal
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201110297761A
Other languages
Chinese (zh)
Inventor
梁捷
俞永福
谢鸿飞
陈泽伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ucweb Inc
Guangzhou Dongjing Computer Technology Co Ltd
Original Assignee
Ucweb Inc
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ucweb Inc, Guangzhou Dongjing Computer Technology Co Ltd filed Critical Ucweb Inc
Priority to CN201110297761A priority Critical patent/CN102324100A/en
Publication of CN102324100A publication Critical patent/CN102324100A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a real-time color acquiring method based on a camera of a mobile terminal, comprising the following steps of: focusing an article requiring color acquisition through the camera of the mobile terminal so that the focus of the camera falls on the article; acquiring a screen position corresponding to the focus on a screen of the mobile terminal; and acquiring the RGB (Red, Green Blue) value of the position according to the screen position corresponding to the focus. By using the real-time color acquiring method based on the camera of the mobile terminal, the color of a real object can be directly acquired, and the color of any article can be acquired anytime and anywhere through the camera of the mobile terminal such as a mobile phone and the like and a corresponding color acquiring method, therefore, a designer or painter can conveniently acquire the color of a real article to plot the own design creativity.

Description

Get color method and device in real time based on mobile terminal camera
Technical field
The present invention relates to technical field of image processing, more particularly, relate to and a kind ofly get color method and device in real time based on mobile terminal camera.
Background technology
Because picture and text such as webpage design, image making are handled the demand aspect the art designing, provide screen and look box efficiently to get look and picture and get the look software of getting miscellaneous of look function and become the indispensable instrument that the art designing designs with practicality, the succinct characteristics of operation.The existing look instrument of getting generally is to get look through the rgb value that the tracking of mouse is read certain some pixel on the selected screen of mouse.
But the present look software of getting is screen and gets look; That is to say that the basis of getting look is that the picture that has obtained can be got the look processing after the demonstration in the buffer memory that gets into electronic equipments such as computer or PDA, mobile phone or other memory devices and on the screen, and can't directly from real world, catch the color of needed article.
Need mainly can there be following problem in existing this of look software of getting through the color obtain manner of getting the look processing after taking pictures or making a video recording again:
1) gets and get look with some softwares again after taking pictures in the look process, the untimely of look can occur getting.And the back of taking pictures according to the picture of preserving and software itself to the transcoding of picture, might cause the result and the actual color of getting look bigger that difference is arranged.
2) if get the scope of look bigger, such as the article of much not putting together, perhaps distant article of distance.Owing to can't in a sheet photo, demonstrate all article, then need all take pictures for each article.Need take pictures respectively to each article like this and get look, the spent time can be long, and it is low to get colour efficiency.
3) can't realize getting the real-time of look.
Summary of the invention
In view of the above problems, the purpose of this invention is to provide a kind of can realize getting in real time look based on camera get color method and device in real time, to solve in the prior art because need take pictures, look is got in storage, screen etc., and restriction was caused gets look inconvenience.
According to an aspect of the present invention, provide a kind of based on mobile terminal camera get color method in real time, comprising:
Need get the article of look through the camera focusing of portable terminal, so that the focus of said camera drops on the said article;
The article that on the screen of said portable terminal, show said camera focusing;
Obtain screen position corresponding on the screen of said portable terminal with said focus;
The screen position corresponding according to said focus obtains the rgb value of said position.
According to a further aspect in the invention, provide a kind of based on mobile terminal camera get the look device in real time, comprising:
The focusing unit is used for need getting through the camera focusing of portable terminal the article of look, so that the focus of said camera drops on the said article;
Display unit is used on the screen of said portable terminal, showing the article that said camera is focused;
The unit is confirmed in the focus screen position, is used to obtain screen position corresponding with said focus on the screen of said portable terminal;
Screen is got color element, is used for the screen position corresponding according to said focus, obtains the rgb value of said position.
Utilize and above-mentionedly get color method and device in real time based on mobile terminal camera according to of the present invention; Can directly obtain the problem of actual things color; Through such as the camera of portable terminals such as mobile phone with get color method accordingly; Can obtain the color of any article whenever and wherever possible, the color that makes things convenient for designer or artist to obtain actual object is conceived the design creativity of oneself.
In order to realize above-mentioned and relevant purpose, one or more aspects of the present invention comprise the characteristic that the back will specify and in claim, particularly point out.Following explanation and accompanying drawing have specified some illustrative aspects of the present invention.Yet, the indication of these aspects only be some modes that can use in the variety of way of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Description of drawings
Through with reference to below in conjunction with the explanation of accompanying drawing and the content of claims, and along with to more complete understanding of the present invention, other purpose of the present invention and result will understand more and reach easy to understand.In the accompanying drawings:
Fig. 1 shows according to the process flow diagram of getting color method in real time based on mobile terminal camera of the present invention; And
Fig. 2 shows according to the block diagram of getting the look device in real time based on mobile terminal camera of the present invention.
Identical label is indicated similar or corresponding feature or function in institute's drawings attached.
Embodiment
Below will combine accompanying drawing that specific embodiment of the present invention is described in detail.
The color method of getting in real time based on mobile terminal camera provided by the invention combines the API of look function through camera and screen of getting of the focus function of camera and mobile terminal screen, thereby realizing need not to take pictures to get the purpose of look in real time.Fig. 1 shows according to the process flow diagram of getting color method in real time based on mobile terminal camera of the present invention, and is as shown in Figure 1, and the color method of getting in real time based on mobile terminal camera provided by the invention comprises the steps:
S110: need get the article of look through the camera focusing of portable terminal, so that the focus of said camera drops on the said article;
S120: the article that on the screen of said portable terminal, show said camera focusing;
S130: obtain screen position corresponding on the screen of said portable terminal with said focus;
S140: the screen position corresponding according to said focus, obtain the rgb value of said position;
The rgb value that is obtained, the color that need get the article of look exactly.
Particularly, be example with the mobile phone cam, when the user finds to get the article of look, just can be through the focus function of mobile phone cam, need get the article of look with the camera focusing, let the focus of camera drop on the article that need get look.The article of camera focusing just are presented on the screen of portable terminal.
(Application Programming Interface API), obtains the corresponding screen position of this focus to API through the calling mobile phone camera then.From user's angle, the position corresponding in the focus that shows on the mobile phone screen is exactly the position that need get look on the article; From the data handling system angle of mobile phone, screen shows the image of the position that the focus of camera is aimed in real time according to the focusing action of camera.
After obtaining the pairing screen position of focus, just can obtain the rgb value of the pairing position of focus on the mobile phone screen, just the screen pixels color of this position through the screen API of calling mobile phone.
The rgb value that is obtained, the color that need get the article of look exactly in real time.Angle from the user; The color relation of the position that the focus that on mobile phone screen, shows is corresponding is the color that need get look, and this color can be according to the variation real-time change of focal position, and the user can preserve the color of being obtained after look is got in focusing each time; Continue focusing then, get next color; Till getting all colors much of that, the whole look process of getting all need not taken pictures, and getting look simple to operation.
Wherein, The api interface that obtains the camera focal position that the focusing technology of mobile phone cam and cell phone system provide, the interface that obtains screen ad-hoc location pixel color all are comparative maturity and widely used technology in the existing technology; The present invention utilizes mobile phone cam application flexibility and existing screen to get the look technology; Focusing position and screen are located ingenious combination; Overcome in the prior art and can only directly get look in real time, effectively avoided getting color range, image preservation form etc. getting the harmful effect of look in the defective of taking pictures or making a video recording, preserving and then after showing on the screen, just can get look to getting the look article.
Be that example is done more careful explanation to technical scheme of the present invention with present very popular Android mobile phone below.The operating system of present Android provides a lot of relevant API for the user; For example; The dual mode of having taken pictures, a kind of Android.hardware.Camera that is to use, two are to use Intent (" android.media.action.IMAGE_CAPTURE ").
When the user need use the Android mobile phone to get look in real time, can realize through following steps:
The configuration file of configuration-system is provided with access rights AndroidManifest.xml;
Start the camera function of Android mobile phone, make the camera focusing get the look article;
Get the look article through what mobile phone screen showed that camera focuses, get access to the pixel of whole screen picture, be kept in the pixel class instantiation of a bitmap;
Through the bitmap class that the Android cell phone system provides, can obtain the rgb value that user wherein chooses the pixel of position (being the focal position);
Through the position that continuous focusing circulation affirmation need be got look, just can preserve the color of these positions (corresponding to the rbg value of the pixel that is the focus position on the mobile phone screen) get up for use.
Need to prove, realize the present invention, the portable terminal that is adopted must possess camera, have and can call camera and obtain the api interface of focal position and can call the interface that obtains screen assigned address rgb value.For present most of medium-to-high grade mobile phone on the market, can both satisfy the requirement that realizes the software and hardware of wanting required for the present invention, therefore, application of the present invention need not increase any hardware or data processing load on existing mobile phone, is easy to promote.
In addition; Because the Android cell phone system needs authentication, therefore in above-mentioned specific embodiment, before getting look in real time; The configuration file that needs configuration-system; Access rights AndroidManifest.xml is set,, thereby realizes the correlation function of the camera of Android cell phone system with the authority of the API that obtains cell phone system.But the step that is provided with of these a pair of access rights is not necessary, in other cell phone system, possibly take other authentication step yet, does not perhaps need authentication, directly just can start the camera function of cell phone system, gets look in real time.
As above described according to of the present invention and got color method in real time based on mobile terminal camera with reference to Fig. 1.Of the present invention above-mentioned based on mobile terminal camera get color method in real time, can adopt software to realize, also can adopt hardware to realize, or adopt the mode of software and hardware combination to realize.
Corresponding with said method, Fig. 2 shows according to the block diagram of getting look device 200 in real time based on mobile terminal camera of the present invention.As shown in Figure 2, comprise that based on the look device 200 of getting in real time of mobile terminal camera focusing unit 210, display unit 220, focus screen position confirm that unit 230 and screen get color element 240.In addition, can also comprise storage unit 250.
Wherein, focusing unit 210 is used for need getting through the camera focusing of portable terminal the article of look, so that the focus of camera drops on the article that need get look; Display unit 220 is used on the screen of portable terminal, showing the article of camera focusing; The focus screen position confirms that unit 230 is used to obtain the screen position corresponding with focus on the screen of portable terminal; Screen is got color element 240 and is used for the screen position corresponding according to above-mentioned focus, obtains the rgb value of this screen position.Storage unit 250 is used to preserve screen and gets the rgb value that color element 240 is obtained.
The present invention not only can be applied to designer, artist's scheme of colour design, and the software that can also be applied to domestic consumer changes skin, picture modification etc.With four application implementation examples simple declaration is done in practical application of the present invention below.
Application 1: the designer learns the scheme of colour of works of excellence
When the designer sees the Design Works in the some reality; Such as exhibition of paintings, building, outdoor advertising etc., research learning has wherein used any color matching if desired, just can have on the mobile phone of camera the installation mobile phone get the look program; Focus through camera; Obtain the color matching of appreciating works, and all preserve main several colors, thereby reach the purpose of the whole scheme of colour that gets access to works of excellence.
Application 2: the artist combines color matching drawing in kind
If the artist need contemplate new Design Works according to the color matching of material object, then can there be on the mobile phone of camera the mobile phone of installation get the look program; Obtain color matching in kind through the camera focusing then, and all preserve main several colors, thereby can process the new Design Works of design according to these several colors.
Use 3: change software skin through getting look
If the software skin that the user need adjust oneself according to oneself demand and surrounding environment just can call camera and get look, obtain the rgb value of required color, revise the skin of software then according to the rgb value that is obtained.The skin of the color change software that can obtain in real time according to camera such as softwares such as browser, desktops is realized the effect of " chameleon ".
Use 4: change the tone of picture through getting look
If the user need change the tone of a photo, just can call camera and get look, acquisition needs the screen pixels rgb value of color, changes the tone of photo then according to the rgb value that obtains.If the color of being obtained is a cool tone, the color relation of photo can change over cool tone, if the color of being obtained is a warm tones, the photo color relation can become warm tones.
As above see figures.1.and.2 to describe according to of the present invention and get color method and device in real time based on mobile terminal camera with the mode of example.But, it will be appreciated by those skilled in the art that propose for the invention described above based on mobile terminal camera get color method and device in real time, can also on the basis that does not break away from content of the present invention, make various improvement.Therefore, protection scope of the present invention should be confirmed by the content of appending claims.

Claims (8)

  1. One kind based on mobile terminal camera get color method in real time, comprising:
    Need get the article of look through the camera focusing of portable terminal, so that the focus of said camera drops on the said article;
    The article that on the screen of said portable terminal, show said camera focusing;
    Obtain screen position corresponding on the screen of said portable terminal with said focus;
    The screen position corresponding according to said focus obtains the rgb value of said position.
  2. 2. as claimed in claim 1 based on mobile terminal camera get color method in real time, wherein, behind the rgb value that obtains the corresponding screen position of said focus,
    Preserve the rgb value that is obtained.
  3. 3. as claimed in claim 1 based on mobile terminal camera get color method in real time, wherein,
    Obtain screen position corresponding on the screen of said portable terminal with said focus through the API that calls said mobile terminal camera.
  4. 4. as claimed in claim 1 based on mobile terminal camera get color method in real time, wherein,
    Obtain the rgb value of the corresponding screen position of said focus through the API that calls said mobile terminal screen.
  5. One kind based on mobile terminal camera get the look device in real time, comprising:
    The focusing unit is used for need getting through the camera focusing of portable terminal the article of look, so that the focus of said camera drops on the said article;
    Display unit is used on the screen of said portable terminal, showing the article that said camera is focused;
    The unit is confirmed in the focus screen position, is used to obtain screen position corresponding with said focus on the screen of said portable terminal;
    Screen is got color element, is used for the screen position corresponding according to said focus, obtains the rgb value of said position.
  6. 6. as claimed in claim 5 based on mobile terminal camera get the look device in real time, also comprise:
    Storage unit is used to preserve said screen and gets the rgb value that color element obtains.
  7. 7. as claimed in claim 5ly get the look device in real time based on mobile terminal camera; Wherein, said focus screen position confirms that the unit obtains screen position corresponding with said focus on the screen of said portable terminal through the API that calls said mobile terminal camera.
  8. 8. as claimed in claim 5 based on mobile terminal camera get the look device in real time, wherein, said screen is got color element obtains the corresponding screen position of said focus through the API that calls said mobile terminal screen rgb value.
CN201110297761A 2011-09-30 2011-09-30 Real-time color acquiring method and device based on camera of mobile terminal Pending CN102324100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110297761A CN102324100A (en) 2011-09-30 2011-09-30 Real-time color acquiring method and device based on camera of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110297761A CN102324100A (en) 2011-09-30 2011-09-30 Real-time color acquiring method and device based on camera of mobile terminal

Publications (1)

Publication Number Publication Date
CN102324100A true CN102324100A (en) 2012-01-18

Family

ID=45451839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110297761A Pending CN102324100A (en) 2011-09-30 2011-09-30 Real-time color acquiring method and device based on camera of mobile terminal

Country Status (1)

Country Link
CN (1) CN102324100A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389897A (en) * 2013-07-17 2013-11-13 深圳市欧珀通信软件有限公司 Desktop wallpaper setting method and desktop wallpaper setting device
CN103488279A (en) * 2012-06-12 2014-01-01 昆盈企业股份有限公司 Input system capable of changing color according to environmental color, device and method
CN103685857A (en) * 2013-12-16 2014-03-26 深圳市东信时代信息技术有限公司 Device and method for acquiring object color through mobile terminal camera
CN103970457A (en) * 2013-01-29 2014-08-06 联想(北京)有限公司 Color information conversion method and device thereof, as well as auxiliary electronic equipment and electronic system
CN103971110A (en) * 2013-01-30 2014-08-06 富港电子(东莞)有限公司 Method for capturing color of physical object
TWI460609B (en) * 2012-06-06 2014-11-11 Kye Systems Corp An input system, the device and the method of changing color according to the color of the ambient
CN106127213A (en) * 2016-06-29 2016-11-16 重庆文理学院 A kind of portable suction coloured pencil
CN106547377A (en) * 2016-10-27 2017-03-29 广东小天才科技有限公司 A kind of stroke display output method and device of writing system
CN108124140A (en) * 2017-12-05 2018-06-05 广东小天才科技有限公司 A kind of Color Picker method, apparatus, electronic brush and storage medium
CN109887042A (en) * 2019-01-04 2019-06-14 上海上湖信息技术有限公司 A kind of application method and device for drawing the color value that ambient color generates

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1550774A (en) * 2003-05-19 2004-12-01 三星电机株式会社 System and method for analysing surface condition of printed circuit board using red ,green and blue colours
CN1759600A (en) * 2003-02-06 2006-04-12 索尼株式会社 Image recording/reproducing apparatus, image pick-up apparatus, and color aberration correcting method
CN201028984Y (en) * 2006-08-01 2008-02-27 浙江大学 Automatic color recognition system
CN101276405A (en) * 2007-03-30 2008-10-01 三星电子株式会社 Mobile terminal and method for displaying image using focus information thereo

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1759600A (en) * 2003-02-06 2006-04-12 索尼株式会社 Image recording/reproducing apparatus, image pick-up apparatus, and color aberration correcting method
CN1550774A (en) * 2003-05-19 2004-12-01 三星电机株式会社 System and method for analysing surface condition of printed circuit board using red ,green and blue colours
CN201028984Y (en) * 2006-08-01 2008-02-27 浙江大学 Automatic color recognition system
CN101276405A (en) * 2007-03-30 2008-10-01 三星电子株式会社 Mobile terminal and method for displaying image using focus information thereo

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI460609B (en) * 2012-06-06 2014-11-11 Kye Systems Corp An input system, the device and the method of changing color according to the color of the ambient
CN103488279A (en) * 2012-06-12 2014-01-01 昆盈企业股份有限公司 Input system capable of changing color according to environmental color, device and method
CN103970457A (en) * 2013-01-29 2014-08-06 联想(北京)有限公司 Color information conversion method and device thereof, as well as auxiliary electronic equipment and electronic system
CN103970457B (en) * 2013-01-29 2018-04-27 联想(北京)有限公司 Colouring information conversion method, device, auxiliary electronic equipment and electronic system
CN103971110A (en) * 2013-01-30 2014-08-06 富港电子(东莞)有限公司 Method for capturing color of physical object
CN103389897A (en) * 2013-07-17 2013-11-13 深圳市欧珀通信软件有限公司 Desktop wallpaper setting method and desktop wallpaper setting device
CN103685857A (en) * 2013-12-16 2014-03-26 深圳市东信时代信息技术有限公司 Device and method for acquiring object color through mobile terminal camera
CN106127213A (en) * 2016-06-29 2016-11-16 重庆文理学院 A kind of portable suction coloured pencil
CN106547377A (en) * 2016-10-27 2017-03-29 广东小天才科技有限公司 A kind of stroke display output method and device of writing system
CN108124140A (en) * 2017-12-05 2018-06-05 广东小天才科技有限公司 A kind of Color Picker method, apparatus, electronic brush and storage medium
CN109887042A (en) * 2019-01-04 2019-06-14 上海上湖信息技术有限公司 A kind of application method and device for drawing the color value that ambient color generates

Similar Documents

Publication Publication Date Title
CN102324100A (en) Real-time color acquiring method and device based on camera of mobile terminal
US9451173B2 (en) Electronic device and control method of the same
RU2639651C2 (en) Image identification and organization according to model without user intervention
US20150363913A1 (en) Adaptive filter demosaicizing for super resolution
US20160180593A1 (en) Wearable device-based augmented reality method and system
CN106534675A (en) Method and terminal for microphotography background blurring
CN103533244A (en) Shooting device and automatic visual effect processing shooting method thereof
CN105005597A (en) Photograph sharing method and mobile terminal
US11450044B2 (en) Creating and displaying multi-layered augemented reality
US9236003B2 (en) Display apparatus, user terminal apparatus, external apparatus, display method, data receiving method and data transmitting method
CN103530114A (en) Picture managing method and device
CN103916597A (en) Shooting method based on simulated scenario
US8830251B2 (en) Method and system for creating an image
CN105005599A (en) Photograph sharing method and mobile terminal
CN113126937A (en) Display terminal adjusting method and display terminal
CN105809618A (en) Picture processing method and device
CN104919490A (en) Structure descriptors for image processing
US9438858B1 (en) Techniques for sharing image data remotely
CN104967786A (en) Image selection method and device
CN103327246A (en) Multimedia shooting processing method, device and intelligent terminal
CN104125397A (en) Data processing method and electronic equipment
CN105554366A (en) Multimedia photographing processing method and device and intelligent terminal
CN103744942A (en) Web browsing method, web browsing device and web browsing terminal device
CN104331241A (en) Panoramic interaction mobile terminal displaying system and method
CN109104628B (en) Focus foreground generation method, storage medium, device and system of android television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20120118

RJ01 Rejection of invention patent application after publication