python-3.x - 我无法从 python 代码中理解这个形状
问题描述
我是 python 新手。我在谷歌上搜索有关 python 代码以获取路牌检测的信息,我找到了一些代码,但我不明白代码的含义。
elif dominant_color[0] > 80:
zone_0 = square[square.shape[0]*3//8:square.shape[0]
* 5//8, square.shape[1]*1//8:square.shape[1]*3//8]
cv2.imshow('Zone0', zone_0)
zone_0_color = warnadominan(zone_0, 1)
zone_1 = square[square.shape[0]*1//8:square.shape[0]
* 3//8, square.shape[1]*3//8:square.shape[1]*5//8]
cv2.imshow('Zone1', zone_1)
zone_1_color = warnadominan(zone_1, 1)
zone_2 = square[square.shape[0]*3//8:square.shape[0]
* 5//8, square.shape[1]*5//8:square.shape[1]*7//8]
cv2.imshow('Zone2', zone_2)
zone_2_color = warnadominan(zone_2, 1)
提前致谢
解决方案
推荐阅读
- php - 在 Laravel 应用程序上连接到 dockerized MySQL 数据库
- arrays - 使用 jq 的 json 键/值的唯一计数
- amazon-web-services - 使用 AWS CLI,是否可以在使用 EMR 实例队列时确定当前正在运行的实例?
- sql - 基于 CONNECT BY 层次结构派生大纲编号
- python-3.x - 如何根据一列对数据框进行分组并根据另一列转置
- python - 在确定是否找到图像之前,如何遍历整个图像数组?
- java - 使用 Java 和 Postgres 数据库进行客户端加密
- node.js - 如何在 SQLlite 循环中连接值,并在循环完成后返回单个字符串?
- flutter - Flutter 应用:频繁从 sqlite 获取数据或存储在内存中
- reactjs - useMutation 挂钩中的更新函数将变异结果显示为未定义