MkNxGn Client for MkRec. Free for use.
Project description
<script src="https://mkrec.mknxgn.pro/rainbow.js"></script>
<style>
@font-face {
font-family: MkFont;
src: url(https://mkrec.mknxgn.pro/MkFont.ttf);
}
.title {
font-family: MkFont;
font-size: xx-large;
padding: 10px;
text-align: center;
}
</style>
MK Rec
Open Image Recognition - Client
Created By Mark @ MkNxGn
Register your client with the server for maximum security!
pip install MkRecClient
Use this module to interact with MkRec on a programmatic level with python! Build an API for your uses to use
your services with MkRec and build awesome applications.
Register your client with the server for maximum security!
#Register the client
usr = input("My Username: ")
MkRecClient.Register_Client(usr)
Get a list of active machines
<pre><code data-language="python">#Get Machines
MkRecClient.Register_Client()
print(MkRecClient.get_machines())
Get Machine Trained Titles, What the machines knows
<pre><code data-language="python">#Get Machine Trained Titles, What the machines knows
MkRecClient.Register_Client()
Machines = MkRecClient.get_machines()
print(Machines['Animals'].titles)
Get Machine Training Stats
<pre><code data-language="python">#Get Machine Training Data
MkRecClient.Register_Client() Machines = MkRecClient.get_machines() print(Machines['Animals'].train_acc) #Machine accuracy
OR
print(Machines['Animals'].training) #All stats
Get the value of points attached to your account
#Get the value of points attached to your account
MkRecClient.Register_Client()
print(MkRecClient.get_points())
And Finally, what we've all been waiting for, how to send an image to the machine!
#Send an Image to get results!
result = MkRecClient.PredictImage(MkRecClient.prep_img("img.png"), "Animals")
result.result #the best result
result.all_results #all results
result.remaing_points #how many points you have now
result.possible_titles #all possible titles of the machine
#if the result wasn't correct, and you had heap=True
result.correct('correct class')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MkRecClient-0.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for MkRecClient-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0efac0520b9df51bf3fcafa4c1916cf15bc2bb21192c2a7ea3263f350ee8b49 |
|
MD5 | bfff331d0084bd2dacfdfba4dd77f74a |
|
BLAKE2b-256 | 3c42ba73b9c9016b094e04698b1a74c1c038eddc69227ce5744f1eb64a332821 |