Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A camera method and device based on raspberry pie

A camera device and Raspberry Pi technology, applied in the computer field, can solve problems such as program crashes and achieve the effect of avoiding program crashes

Active Publication Date: 2021-07-23
优必选软件技术深圳有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present application provides a method and device for taking photos based on Raspberry Pi, which can solve the problem that the program may crash during shooting

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A camera method and device based on raspberry pie
  • A camera method and device based on raspberry pie
  • A camera method and device based on raspberry pie

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0038] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and / or collections thereof.

[0039] It should...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application is applicable to the field of computer technology, and provides a Raspberry Pi-based photographing method, comprising: detecting a camera startup instruction, and obtaining a pre-recorded number of tasks using photographing threads; the number of tasks using photographing threads is greater than 1, according to the The opened camera thread takes pictures, and the number of tasks using the camera thread is updated; the camera shutdown instruction is detected, and the number of tasks using the camera thread is updated according to the camera shutdown instruction. The number of tasks using the camera thread is 0, and the camera is turned off. In the above method, it is judged whether a photo-taking thread has been created currently according to the task data amount of the photo-taking thread. When the number of tasks is greater than 1, it means that a photo-taking thread already exists, and there is no need to create it again, and when the number of tasks is 0, it means that at this time If there is no task using the camera thread, the camera can be turned off, thus avoiding the problem of program crash.

Description

technical field [0001] The present application belongs to the field of computer technology, and in particular relates to a method and device for taking pictures based on Raspberry Pi. Background technique [0002] When using the camera on the Raspberry Pi (RPi) to shoot, the shooting is done through the camera shooting instance. In order to ensure the normal operation of the program, the current shooting thread must be ended before starting a new shooting thread. However, in multi-threading, there is no guarantee that when the camera shooting instance is defined in this thread, the camera shooting instances of other threads have been closed. Therefore, the problem of program crash may occur when shooting. Contents of the invention [0003] The embodiment of the present application provides a method and device for taking photos based on Raspberry Pi, which can solve the problem that the program may crash during shooting. [0004] In the first aspect, the embodiment of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N5/232
CPCH04N23/60
Inventor 秦利福王轶丹崔宁熊友军
Owner 优必选软件技术深圳有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products