Giter Club home page Giter Club logo

binary-file-process-201811113010's Introduction

二进制文件处理

以 BMP 为例进行二进制文件的解析。

lenna.bmp

图像处理领域经典样本。

bmp_reader.py

读取二进制文件,并按照一般 BMP 格式来解析其结构,理解 BMP 格式的同时,学会使用 struct 来将二进制数据转换为所需要的人类可读的数据类型。

Conan.py

包含两个函数,函数 detect 是一个检测像素值为 #000000 的点并打印出他们的相对偏移,如果相对偏移为 10 则转化为0。

请大家完成函数 tamper ,它接受你的学号为参数,将对应的像素值设置为 #000000 ,成功后,运行 detect 即可输出学号。

binary-file-process-201811113010's People

Contributors

anjingcuc avatar solosingha avatar

Watchers

James Cloos avatar  avatar

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.