first commit
commit
4911b83dd8
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,12 @@
|
|||
name = "CryptoMinerTempControl"
|
||||
uuid = "7fc9c718-f6b9-4891-bbad-67a0a45a8fdd"
|
||||
authors = ["jaketothepast <windlejacob12@gmail.com>"]
|
||||
version = "0.1.0"
|
||||
|
||||
[deps]
|
||||
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
|
||||
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
|
||||
ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19"
|
||||
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
|
||||
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
|
||||
OCReract = "c9880795-194d-450c-832d-1e8a03a8ecd1"
|
|
@ -0,0 +1,18 @@
|
|||
module CryptoMinerTempControl
|
||||
|
||||
using OCReract
|
||||
using Images
|
||||
|
||||
include("camera.jl")
|
||||
import .camera
|
||||
|
||||
function get_current_text()
|
||||
img = camera.get_image()
|
||||
|
||||
# Now attempt to read this image
|
||||
res_text = run_tesseract(image(img), psm=3, oem=1)
|
||||
end
|
||||
|
||||
end # module CryptoMinerTempControl
|
||||
|
||||
# CryptoMinerTempControl.start()
|
|
@ -0,0 +1,17 @@
|
|||
module camera
|
||||
|
||||
using VideoIO
|
||||
|
||||
hello() = println("hello")
|
||||
|
||||
"""
|
||||
Get the image from the video camera.
|
||||
"""
|
||||
function get_image()
|
||||
cam = VideoIO.opencamera(encoder=false)
|
||||
img = read(cam)
|
||||
close(cam)
|
||||
img
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue