Skip to content

图片剪裁的问题 #1

@NogizakaZ

Description

@NogizakaZ

运行之后一直显示 'Sorry! Failed! Maybe you need to update the code.'
试了几个方法排除bug,在这一行
im = Image.open(StringIO.StringIO(browser.get_screenshot_as_png())).crop((400, 310, 630, 530)).convert('L')
用crop裁剪的时候得到的图片是这个
2017-05-02 1 22 41
貌似是没有拿到正确的解锁图片,打印了一下im的size是(2100,1326)
在getType函数里面打印了 print im.load()[i,j],ims[png][i][j] 结果是(87,255),所以 isGoingOn参数一直都是False
运行平台是Mac,不知道是不是跟屏幕的分辨率有关...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions