6

js 从图片获取 10 个色块,再对照试纸的比色卡,读取色块对应的数值,求思路

 2 years ago
source link: https://www.v2ex.com/t/848470
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

js 从图片获取 10 个色块,再对照试纸的比色卡,读取色块对应的数值,求思路

  v2mo · 18 小时 34 分钟前 · 626 次点击

有个需求:

尿检有那种试纸,比如,一个试纸条,上面有 10 个测试项目(矩形小纸片贴在试纸上,有间隔),尿液侵泡几十秒后,就能读取数值了。

现在要把整套程序化,自动识别数值。

因为程序运行环境限制,js 实现最好。

这似乎是 CV 计算机视觉领域的问题,难道要用 opencv 。

感觉好难。有大佬能接吗?(可外包,有偿)

给个思路也行。

目前我想到的难点: 1 、从扫一扫那样的照片帧中,一帧一帧的识别图片

2 、一个图片帧中,识别出 10 个色块,有点麻烦

3 、试纸是湿的,颜色肯定会溢出矩形,对程序识别造成麻烦

4 、取得的颜色,在比色卡中,如何解读出他对于的数值,好难。。。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK