JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

convert

发布时间 2023-03-22 21:16:27作者: 西北逍遥

 

def convert(size, box):
    dw = 1. / (size[0])
    dh = 1. / (size[1])
    x = (box[0] + box[1]) / 2.0 - 1
    y = (box[2] + box[3]) / 2.0 - 1
    w = box[1] - box[0]
    h = box[3] - box[2]
    x = x * dw
    w = w * dw
    y = y * dh
    h = h * dh
    return x, y, w, h

 

 

 

#################

    本栏目推荐文章
  • Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "getSysTenantNames"
  • Json.NET Converting between JSON and XML
  • think\db\Raw could not be converted to string 错误的处理方式
  • C# Convert.ToBoolean()字符串转布尔类型问题
  • Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'endTime';
  • 异构dataguard下的db_file_name_convert设置
  • PAVELINK.SOA-Converter新版本发布,助力SOA架构开发
  • Adobe DNG Converter 16.0.1 将RAW文件转换成DNG文件(Win&Mac)
  • DASCTF Apr.2023 X SU战队2023开局之战-pdf_converter(_revenge)web-wp
  • mybatis plus order by 不支持convert函数
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们