美文网首页我爱编程
Color Recognization in mobile ap

Color Recognization in mobile ap

作者: f3069 | 来源:发表于2018-03-24 23:05 被阅读47次

    A mobile application for the color-blindness to recognize color

    1.Summary

    Software type: iOS application
    Author: F
    Time: 2016.12--2017.12

    2.Main

    The mobile application is aimed to recognize color in the camera of iOS devices for the color-blindness, including hypochromatopsia and achromatopsia.

    Function

    1. The user clicks on the desired position in the screen and the application automatically recognizes the color of the area block centered on the touch point and feeds it back with text and speech.
    2. On the one hand, you can get pictures through a gallery or camera. On the other hand, you can click on the object directly in the camera interface for color recognition (instant camera mode).

    3. Programming

    Development Environment

    • Development tools: Xcode 8.3.2 iOS 10.1
    • Programming language: Swift3.0 C++ Objective-C
    • Others: OpenCV Library, C++, Swift Bridge Technology, Cocoapods

    4.Algorithm

    Color Recognization Algorithm: Using a combination of search color range tables and kNN

    Details:

    • By studying the characteristics of the HSV color space, we found that when the light is bright, hue(H) is the main influence factor of the color. However, when the environment is gloomy or dark, value(V) is the main factor.
    • In particular, red has two divided ranges in hue because of the HSV conical model.
    • First, we determine whether the saturation and value are in the range of white, gray and black when recognizing the HSV values of the color point from iOS devices.


      标准颜色卡的色调、饱和度极坐标图
    • Second, we use the k Nearest Neighbor Algorithm. Calculate the distance from the pixel to be measured and the standard color HSV tables, and then get the nearest k standard colors. The color with the most number of color labels in the k neighbors is regarded as the color of the pixel.

    5.Advantages

    1. This method solves the shortcomings of traditional color classification and the method's advantages:
    1. Precision, there is no need to divide the range of HSVs for each color, and to achieve accurate classification of more than 50 colors.
    1. In manual acquisition of a standard color HSV table, this method can achieve camera and standard color adjustments.

    6.Software screenshot

    主页
    识别照片
    即时相机

    项目开源源代码:
    http://github.com/J3069/ColorRecognization

    相关文章

      网友评论

        本文标题:Color Recognization in mobile ap

        本文链接:https://www.haomeiwen.com/subject/qesccftx.html