Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从像素中获取高度和宽度?
Pix *image = pixRead((input).c_str());
使用pixGetWidth和pixGetHeight:
Pix *image = pixRead((input).c_str()); int width = pixGetWidth(image); int height = pixGetHeight(image);