Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello β I'm @olemoritz on Twitter.
Text detection with Vison coreML
-
@pavlinb You can post the url but I don't promise anything, if too long or too complex for me
-
@cvp https://developer.apple.com/documentation/vision/recognizing_objects_in_live_capture
There is download button at the top.
-
@pavlinb I think you (we?) Could do it, starting from @JonB script https://github.com/jsbain/objc_hacks/blob/master/live_camera_view.py
-
@cvp I thought the same :-)
-
-
@cvp class LiveCameraView(ui.View):
''' device=1== front, device=2==backback camera is device=0
-
@pavlinb Thanks, gist corrected
-
@cvp A big step in right direction. Thanks.
-
@pavlinb Next step is to integrate AVCaptureVideoDataOutput from example here
If you follow the logic of this code, you will fall on UIImageFromSampleBuffer function
which is bery very complex (for me, at least) -
-
@pavlinb Super. Do you think I have to try to intercept real frames of the camera or are you happy with this way of taking still photos?
-
@pavlinb On my (old) iPad mini 4, the script takes 2 photos per second, far from a real time process for frames...
-
@cvp For my current needs itβs perfect.
-
@pavlinb π
-
@cvp But it would be good if i can avoid shutter sound. I assume it is caused by the method used to capture frames?
-
@pavlinb for info, AVCaptureStillImageOutput is deprecated, we should use AVCapturePhotoOutput
-
-
@cvp said:
@pavlinb Next step is to integrate AVCaptureVideoDataOutput from example here
If you follow the logic of this code, you will fall on UIImageFromSampleBuffer function
which is bery very complex (for me, at least)Hi, did you manage to run given code? It seems it contains number of functions (ready to use or not).
Regards.
-
@pavlinb No, sorry.
-
which one of the code examples in this thread is the BEST one to copy and paste into my ipad mini 2 ?????????? for text detection for getting the starting numbers of a sodoku puzzle by taking a picture of a sodoku puzzle in a newspaper