
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
opencv-react-ts
Advanced tools
Originally forked from giacomocerquone/opencv-react
Hooks-first minimal OpenCV wrapper for React.
It simplifies the import of this library and integrates it well with the React ecosystem.
Bear in mind that the loading of the library, being huge, is done asynchronously. Of course you can listen with this lib when the loading has finished in order to execute some setup code.
You have also access to a loaded
state which is provided by the OpenCvProvider
component
npm i opencv-react-ts
or
yarn add opencv-react-ts
OpenCvProvider
Usage:
const MyApp = () => {
return (
<OpenCvProvider>
<MyComponent />
</OpenCvProvider>
)
}
useOpenCv
{
loaded: boolean, indicates if the opencv library is loaded (useful to show a spinner)
cv: undefined or the OpenCV global instance (can also be found in window.cv)
}
function MyComponent() {
const { loaded, cv } = useOpenCv()
useEffect(() => {
if (cv) {
}
}, [cv])
return <p>OpenCv React test</p>
}
function MyComponent() {
const data = useOpenCv()
console.log(data)
return <p>OpenCv React test</p>
}
const App = () => {
const onLoaded = (cv) => {
console.log('opencv loaded', cv)
}
return (
<OpenCvProvider onLoad={onLoaded} openCvPath='/opencv/opencv.js'>
<MyComponent />
</OpenCvProvider>
)
}
Check also the example folder
MIT © subho57
FAQs
OpenCV react wrapper. Hooks first API.
The npm package opencv-react-ts receives a total of 1,460 weekly downloads. As such, opencv-react-ts popularity was classified as popular.
We found that opencv-react-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.