Generally, a single software cannot be patented, even if it can be patented, it is not cost-effective. Instead, you should register the copyright and protect your copyright. And in this case, even if you use other people's things, your software copyright is protected. If you use his patent, it infringes your rights and does not affect your copyright.