Speaking as another O'Reilly author, I'd agree with this and add that for tech books the publisher is even less necessary. If you've written papers with Latex/MD/asciidoc, and drawn figures and tables, you're already doing most of what you'd do with your publisher's toolchain anyway. Hook up with Amazon's on-demand publishing service and (except for the nice cover) you've got it almost end-to-end.
[I assume you can write and organize thoughts decently well, and have some people who can proofread for you. If not, a publisher really won't help too much with that anyway.]
So what does a publisher provide? Marketing, promotion, distribution, reputation. No matter how good of a book you write, having a name publisher like O'Reilly gives you substantial credibility that nothing else will. They can arrange promotions through conferences and email distribution that you probably can't. I wouldn't underestimate this, but I also wouldn't necessarily think it's worth their 80%-90% cut either.