skinnypig
1.0.6 • Public • Published
SkinnyPig
🐷😄 This is Butcher of FatPig signals 😄🐷
Installation
# npm
npm i skinnypig
# yarn
yarn add skinnypig
// esm
import { butcher } from "skinnypig"
// cjs
const { butcher } = require("skinnypig")
Usage
// async
try {
const { signal, confidence } = await butcher("path/Of/fatPigSignalImage.jpg")
/** signal output
* {
* pair: ["BNB", "USDT"],
* entry: [560, 614],
* stop: [479],
* targets: [632, 658, 705, 780, 900, 1150]
* }
*/
} catch (e) {
// The image is unrecognizable
}
// sync
startSession("path/Of/fatPigSignalImage.jpg")
.then(({ signal, confidence }) => {
/** confidence output
* 92
*/
})
.catch((e) => {
// The image is unrecognizable
})
Cli
butcher "path/Of/target.jpg" --reflect "path/of/reflect.jpg" --log
Limitations
- Not browser-compatible.
- Only images like targets are supported.
Targets
Reflects
Package Sidebar
Install
Weekly Downloads