最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - Removing background from image in React Native - Stack Overflow

matteradmin9PV0评论

So I currently have an app that allows the user to take a photo. I would like it so that once they've taken the photo of themself, the app will remove the background of the image (like remove.bg) and present it as a transparent PNG. I would use remove.bg's API but you only get 50 free credits a month and I would likely be processing more than that. I've looked into OpenCV and Tensorflow but I can't really seem to get any success with it. Any help would be appreciated.

So I currently have an app that allows the user to take a photo. I would like it so that once they've taken the photo of themself, the app will remove the background of the image (like remove.bg) and present it as a transparent PNG. I would use remove.bg's API but you only get 50 free credits a month and I would likely be processing more than that. I've looked into OpenCV and Tensorflow but I can't really seem to get any success with it. Any help would be appreciated.

Share Improve this question edited Feb 2, 2023 at 18:07 Mig82 5,5104 gold badges45 silver badges70 bronze badges asked Nov 30, 2020 at 12:12 J. DoeJ. Doe 733 silver badges12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

You'd probably have to setup a backend for that, if you want to remove the background. Once the user takes a photo the image gets sent to your backend where it gets processed by OpenCV and sent back backgroundless. Django or Nodejs make good backend options.

Post a comment

comment list (0)

  1. No comments so far