Giter Site home page Giter Site logo

orcastor / phone_images Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 234.4 MB

📱 常见手机型号照片,包括苹果和主要安卓厂商(华为、荣耀、小米、红米、黑鲨、Oppo、一加、Realme、Vivo、魅族、联想、中兴、samsung、锤子、HTC等)

License: MIT License

Python 5.21% Go 94.79%
apple blackshark honor htc huawei iphone lenovo meizu oneplus oppo

phone_images's Introduction

📱OrcaS 常见手机照片

照片名称列表

  • android
  • ios
  • (可能用不上,安卓可以用数据库查询,iOS直接拼出名字)

使用场景

  • 可以使用厂商和型号匹配到对应的机型图片
  • Android:sqlite数据库android.db
    • 表名models,字段名model,有FTS5版全文检索索引(注意是否支持,如不支持可修改models2db.py自行生成)
    • 建议查询方式
      • SELECT * FROM models WHERE model LIKE ? COLLATE NOCASE
      • 查询参数:%<ro.product.brand>%<ro.product.name>%,比如%Huawei%NOP-AN00P%
        PS F:\GitHub\phone_images> sqlite3.exe .\android.db
        SQLite version 3.45.2 2024-03-12 11:06:23 (UTF-16 console I/O)
        Enter ".help" for usage hints.
        sqlite> SELECT * FROM models WHERE model LIKE '%Huawei%NOP-AN00P%' COLLATE NOCASE;
        Huawei Mate 40 RS Porsche Design NOP-AN00P Black
        Huawei Mate 40 RS Porsche Design NOP-AN00P
        sqlite>
  • iOS:model_to_color.json映射表
    • 可以使用M或者N开头的5位型号(ModelNumber)匹配到颜色
    • 规约到12种颜色
      • Black:Black、Midnight、Graphite、Jet Black、Matte Black、BlackSlate、Black Titanium
      • White:White、Starlight、WhiteSilver、White Titanium
      • Gold:Gold
      • Silver:Silver
      • Pink: Pink、Rose Gold
      • Gray:Gray、Space Gray、Natural Titanium
      • Blue:Blue、Sierra Blue、Pacific Blue、Blue Titanium
      • Red:Red
      • Green:Green、Alpine Green
      • Yellow:Yellow
      • Purple: Purple、Deep Purple
      • Orange:Coral

Golang SDK

  • 提供GetIOSProductName,GetIOSURL,GetAndroidProductName,GetAndroidURL四个方法
  • 引入方式import "github.com/orcastor/phone_images/sdk"

构造地址

示例

phone_images's People

Contributors

orca-zhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

glodenboy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.