-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I receive metaconvert and jpegenc in one class? #814
Comments
@nnshah1 Any help in this will be great. Actually this is causing us problem that sometimes a frame passes through metaconvert and do post-processing via gvapython, and then the same frame miss to go to the jpegenc and hence the event metadata generates but image being not captured. |
As per our discussion in the last meet we have done this implementation with the same pipeline
the mat variable in the PeopleCount class should be the image. But it shows an error. Right now we get the analytics/metadata in PeopleCount and image in ImageCapture class. However, we want the image and analytics/metadata both in PeopleCount class only. Error:
|
Pipeline and the yolov4 model with the proc-file are here |
Hii @nnshah1
{ "name": "staff-engm-det", "version": 2, "type": "GStreamer", "template": [ "rtspsrc udp-buffer-size=212992 name=\"source\" ", " ! queue ! rtph264depay ! h264parse ! video/x-h264 ", " ! tee name=t ! queue ! decodebin ! queue leaky=upstream ", " ! gvadetect ie-config=CPU_BIND_THREAD=NO model=\"{models[{{ input_model_0 }}][1][network]}\" model-proc=\"{models[{{ input_model_0 }}][1][proc]}\" name=\"detection\" threshold=0.40 ", " ! queue ! gvametaconvert add-empty-results=true name=\"metaconvert\" ! gvapython name=\"peoplecounting\" module=\"custom_transforms/staffEngmDet\" class=\"StaffEngagementTime\" ! queue ! gvametapublish name=\"destination\" ", " ! tee name = tt ! queue ! gvawatermark ! videoconvert ! jpegenc ! gvapython name=\"ImageCapture\" module=\"custom_transforms/staffEngmDet\" class=\"ImageCapture\" ", " ! queue ! appsink name=appsink t. ! queue ! splitmuxsink mux=\"mp4mux fragment-duration=1000\" max-size-time=300000000000 name=\"splitmuxsink\""], "description": "staff-engm-det Pipeline", "parameters": { "type": "object", "properties": { "inference-interval": { "element": "detection", "type": "integer", "minimum": 0, "maximum": 4294967295 }, "cpu-throughput-streams": { "element": "detection", "type": "string" }, "n-threads": { "element": "videoconvert", "type": "integer" }, "nireq": { "element": "detection", "type": "integer", "minimum": 1, "maximum": 64 }, "recording_prefix": { "type": "string", "element": { "name": "splitmuxsink", "property": "location" }, "default": "recording" } } } }
here is the pipeline that we are using where there are two python classes one which is StaffEngagementTime receives metaconvert and another class that is ImageCapture receives jpegenc to capture the image. How can I receive metaconvert and jpegenc in one class?
The text was updated successfully, but these errors were encountered: